Trait TaskOutput

Source
pub trait TaskOutput: Send {
    type Return;

    // Required methods
    fn try_from_raw_vc(raw_vc: RawVc) -> Self::Return;
    fn try_into_raw_vc(self) -> Result<RawVc>;
}
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§

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§

type Return = Vc<T>

Source§

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