pub trait TaskInput:
Send
+ Sync
+ Clone
+ Debug
+ PartialEq
+ Eq
+ Hash
+ TraceRawVcs {
// Required method
fn is_transient(&self) -> bool;
// Provided methods
fn resolve_input(&self) -> impl Future<Output = Result<Self>> + Send + '_ { ... }
fn is_resolved(&self) -> bool { ... }
}
Expand description
Trait to implement in order for a type to be accepted as a
#[turbo_tasks::function]
argument.
Required Methods§
fn is_transient(&self) -> bool
Provided Methods§
fn resolve_input(&self) -> impl Future<Output = Result<Self>> + Send + '_
fn is_resolved(&self) -> bool
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.