Skip to main content

ContentSourceProcessor

Trait ContentSourceProcessor 

Source
pub trait ContentSourceProcessor:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn process(
        self: Vc<Self>,
        content: Vc<ContentSourceContent>,
    ) -> Vc<ContentSourceContent>
       where Self: Sized;
}
Expand description

Handles the final processing of an eventual ContentSourceContent.

Used in conjunction with WrappedGetContentSourceContent, this allows a ContentSource implementation to easily register a final process step over some inner ContentSource’s fully resolved ContentSourceContent.

Required Methods§

Source

fn process( self: Vc<Self>, content: Vc<ContentSourceContent>, ) -> Vc<ContentSourceContent>
where Self: Sized,

Trait Implementations§

Source§

impl TraitVtablePrototype for Box<dyn ContentSourceProcessor>

Source§

const LEN: usize = 1usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn ContentSourceProcessor>

Source§

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

type ValueTrait = dyn ContentSourceProcessor

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

impl Dynamic<Box<dyn ContentSourceProcessor>> for Box<dyn ContentSourceProcessor>

Source§

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

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn ContentSourceProcessor>> for Box<dyn ContentSourceProcessor>

Source§

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

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ContentSourceProcessor>

Available on debug-assertions enabled only.

Implementors§

Source§

impl<T> ContentSourceProcessor for T
where T: Dynamic<Box<dyn ContentSourceProcessor>> + Send + Sync + NonLocalValue + ValueDebug,