pub enum TuneCacheResult {
Hit {
fastest_index: usize,
},
Unchecked,
Pending,
Miss,
}Expand description
Result of the cache try
Variants§
Hit
An operation is found.
Unchecked
The operation might be cached, but we don’t know yet whether the checksum is valid.
Pending
A tuning job is in flight for this key — the worker hasn’t published a result yet.
The receiver wakes (with Err(RecvError)) when the worker commits the result. Native
callers block_on it and re-query; wasm callers drop it and fall back.
Miss
No operation is found yet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuneCacheResult
impl RefUnwindSafe for TuneCacheResult
impl Send for TuneCacheResult
impl Sync for TuneCacheResult
impl Unpin for TuneCacheResult
impl UnsafeUnpin for TuneCacheResult
impl UnwindSafe for TuneCacheResult
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