Trait GetContentSourceContent

Source
pub trait GetContentSourceContent:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn get(
        self: Vc<Self>,
        path: RcStr,
        data: ContentSourceData,
    ) -> Vc<ContentSourceContent>
       where Self: Sized;

    // Provided method
    fn vary(self: Vc<Self>) -> Vc<ContentSourceDataVary>
       where Self: Sized { ... }
}
Expand description

A functor to receive the actual content of a content source result.

Required Methods§

Source

fn get( self: Vc<Self>, path: RcStr, data: ContentSourceData, ) -> Vc<ContentSourceContent>
where Self: Sized,

Get the content

Provided Methods§

Source

fn vary(self: Vc<Self>) -> Vc<ContentSourceDataVary>
where Self: Sized,

Specifies data requirements for the get function. Restricting data passed allows to cache the get method.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn GetContentSourceContent>

Source§

type ValueTrait = dyn GetContentSourceContent

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 GetContentSourceContent>> for Box<dyn GetContentSourceContent>

Source§

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

Source§

impl Upcast<Box<dyn GetContentSourceContent>> for Box<dyn GetContentSourceContent>

Source§

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

Implementors§