#[non_exhaustive]pub enum ParityCacheOutcome {
NotUsed,
Hit {
passed: bool,
},
Miss {
reason: &'static str,
stored: bool,
},
}Expand description
What the load-time parity check did with the opt-in verdict cache
(EmbedderConfig::with_parity_cache_dir).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotUsed
No cache directory configured, or no parity check ran (CPU provider, non-E40 bundle).
Hit
A stored verdict for the same model files, runtime and provider was used and no CPU
session was built. passed is the stored verdict (a stored failure serves CPU).
Miss
Nothing usable was stored, so the check ran. stored says whether its verdict was
written (a failed write, or an inference error, leaves the cache as it was).
Trait Implementations§
Source§impl Clone for ParityCacheOutcome
impl Clone for ParityCacheOutcome
impl Copy for ParityCacheOutcome
Source§impl Debug for ParityCacheOutcome
impl Debug for ParityCacheOutcome
Source§impl Default for ParityCacheOutcome
impl Default for ParityCacheOutcome
impl Eq for ParityCacheOutcome
Source§impl PartialEq for ParityCacheOutcome
impl PartialEq for ParityCacheOutcome
impl StructuralPartialEq for ParityCacheOutcome
Auto Trait Implementations§
impl Freeze for ParityCacheOutcome
impl RefUnwindSafe for ParityCacheOutcome
impl Send for ParityCacheOutcome
impl Sync for ParityCacheOutcome
impl Unpin for ParityCacheOutcome
impl UnsafeUnpin for ParityCacheOutcome
impl UnwindSafe for ParityCacheOutcome
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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