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§

Implementors§