Trait ContentSource

Source
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§

Source

fn get_routes(self: Vc<Self>) -> Vc<RouteTree>
where Self: Sized,

Provided Methods§

Source

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>

Source§

type ValueTrait = dyn ContentSource

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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.
Source§

impl Dynamic<Box<dyn ContentSource>> for Box<dyn ContentSource>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ContentSource>

Source§

impl Upcast<Box<dyn ContentSource>> for Box<dyn ContentSource>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn ContentSource>

Implementors§