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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more