Skip to main content

ContentSourceSideEffect

Trait ContentSourceSideEffect 

Source
pub trait ContentSourceSideEffect:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn apply(self: Vc<Self>) -> Vc<Completion>
       where Self: Sized;
}
Expand description

This trait can be emitted as collectible and will be applied after the request is handled and it’s ensured that it finishes before the next request is handled.

Required Methods§

Source

fn apply(self: Vc<Self>) -> Vc<Completion>
where Self: Sized,

Trait Implementations§

Source§

impl Dynamic<Box<dyn ContentSourceSideEffect>> for Box<dyn ContentSourceSideEffect>

Source§

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

Available on debug-assertions enabled only.
Source§

impl TraitVtablePrototype for Box<dyn ContentSourceSideEffect>

Source§

const LEN: usize = 1usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl Upcast<Box<dyn ContentSourceSideEffect>> for Box<dyn ContentSourceSideEffect>

Source§

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

Available on debug-assertions enabled only.
Source§

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

Available on debug-assertions enabled only.
Source§

impl VcValueTrait for Box<dyn ContentSourceSideEffect>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn ContentSourceSideEffect

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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