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
Receives the actual content for a ContentSource.
Required Methods§
fn get(
self: Vc<Self>,
path: RcStr,
data: ContentSourceData,
) -> Vc<ContentSourceContent>where
Self: Sized,
Provided Methods§
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn GetContentSourceContent>
impl TraitVtablePrototype for Box<dyn GetContentSourceContent>
Source§impl VcValueTrait for Box<dyn GetContentSourceContent>
impl VcValueTrait for Box<dyn GetContentSourceContent>
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 GetContentSourceContent
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 GetContentSourceContent>> for Box<dyn GetContentSourceContent>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn GetContentSourceContent>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn GetContentSourceContent>> for Box<dyn GetContentSourceContent>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn GetContentSourceContent>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn GetContentSourceContent>
Available on debug-assertions enabled only.