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§
fn try_from_raw_vc(raw_vc: RawVc) -> Self::Return
fn try_into_raw_vc(self) -> Result<RawVc>
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.