Trait TaskOutput

Source
pub trait TaskOutput: Send {
    type Return: ?Sized;

    // Required method
    fn try_into_raw_vc(self) -> Result<RawVc>;

    // Provided method
    fn try_from_raw_vc(raw_vc: RawVc) -> Vc<Self::Return> { ... }
}
Expand description

Trait to implement in order for a type to be accepted as a turbo_tasks::function return type.

Required Associated Types§

Required Methods§

Provided Methods§

Source

fn try_from_raw_vc(raw_vc: RawVc) -> Vc<Self::Return>

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.

Implementations on Foreign Types§

Source§

impl TaskOutput for ()

Implementors§

Source§

impl<T> TaskOutput for Vc<T>
where T: Send + ?Sized,

Source§

impl<T> TaskOutput for Result<T>
where T: TaskOutput,