pub trait ContentSource:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn get_routes(self: Vc<Self>) -> Vc<RouteTree>
where Self: Sized;
// Provided method
fn get_children(self: Vc<Self>) -> Vc<ContentSources>
where Self: Sized { ... }
}
Expand description
A source of content that the dev server uses to respond to http requests.
Required Methods§
Provided Methods§
Sourcefn get_children(self: Vc<Self>) -> Vc<ContentSources>where
Self: Sized,
fn get_children(self: Vc<Self>) -> Vc<ContentSources>where
Self: Sized,
Gets any content sources wrapped in this content source.
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ContentSource>
impl VcValueTrait for Box<dyn ContentSource>
type ValueTrait = dyn ContentSource
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.