Trait SourceProvider

Source
pub trait SourceProvider:
    Send
    + Clone
    + 'static {
    // Required method
    fn get_source(&self) -> OperationVc<Box<dyn ContentSource>>;
}

Required Methods§

Source

fn get_source(&self) -> OperationVc<Box<dyn ContentSource>>

must call a turbo-tasks function internally

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> SourceProvider for T
where T: Fn() -> OperationVc<Box<dyn ContentSource>> + Send + Clone + 'static,