pub struct CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>where
Exec: FnOnce() -> ExecFuture + Send,
ExecFuture: Future<Output = Result<Raw>> + Send,
Decode: FnOnce(Raw) -> Result<Output> + Send,{
pub cache_key: CacheKey,
pub context: String,
pub debug_inputs: BTreeMap<PathBuf, BString>,
pub executor_kind: String,
pub output_type: String,
pub execute_raw: Exec,
pub decode: Decode,
}Fields§
§cache_key: CacheKey§context: String§debug_inputs: BTreeMap<PathBuf, BString>§executor_kind: String§output_type: String§execute_raw: Exec§decode: DecodeTrait Implementations§
Auto Trait Implementations§
impl<Exec, ExecFuture, Decode, Raw, Output> Freeze for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>
impl<Exec, ExecFuture, Decode, Raw, Output> RefUnwindSafe for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>where
Exec: RefUnwindSafe,
Decode: RefUnwindSafe,
impl<Exec, ExecFuture, Decode, Raw, Output> Send for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>
impl<Exec, ExecFuture, Decode, Raw, Output> Sync for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>
impl<Exec, ExecFuture, Decode, Raw, Output> Unpin for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>
impl<Exec, ExecFuture, Decode, Raw, Output> UnsafeUnpin for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>where
Exec: UnsafeUnpin,
Decode: UnsafeUnpin,
impl<Exec, ExecFuture, Decode, Raw, Output> UnwindSafe for CachedWorkSpec<Exec, ExecFuture, Decode, Raw, Output>where
Exec: UnwindSafe,
Decode: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more