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

A ContentSourceProcessor 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 [ContentSourceResult] and ContentSourceContent.

Required Methods§

Source

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

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn ContentSourceProcessor>

Source§

type ValueTrait = dyn ContentSourceProcessor

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

Source§

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

Source§

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

Source§

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

Implementors§