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 TraitVtablePrototype for Box<dyn ContentSource>
impl TraitVtablePrototype for Box<dyn ContentSource>
Source§impl VcValueTrait for Box<dyn ContentSource>
impl VcValueTrait for Box<dyn ContentSource>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn ContentSource
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn ContentSource>> for Box<dyn ContentSource>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ContentSource>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ContentSource>> for Box<dyn ContentSource>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ContentSource>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ContentSource>
Available on debug-assertions enabled only.