pub enum MachineCacheError {
Show 18 variants
Io(Error),
InvalidCachePath(String),
InvalidCacheName(String),
UnsupportedCodec(MachineCacheCodec),
UnsupportedCodecId(u32),
Serialization(String),
InvalidMagic,
UnsupportedVersion(u32),
InvalidHeaderLength(u32),
ReservedBytesSet,
LengthMismatch,
SourceMismatch,
SchemaMismatch,
PayloadChecksumMismatch,
ArchiveChecksumMismatch,
BytecheckFailed(String),
Json(String),
Toml(String),
}Expand description
Error returned by typed machine cache helpers.
Variants§
Io(Error)
Underlying I/O operation failed.
InvalidCachePath(String)
Source path or cache path is not valid for a project cache.
InvalidCacheName(String)
Project name or cache name contains unsupported characters.
UnsupportedCodec(MachineCacheCodec)
Requested codec is not supported by the typed cache helper yet.
UnsupportedCodecId(u32)
Cache bytes specified an unknown codec ID.
Serialization(String)
RKYV serialization failed.
InvalidMagic
Header magic did not match typed machine cache bytes.
UnsupportedVersion(u32)
Header version is not supported.
InvalidHeaderLength(u32)
Header length was not the expected fixed size.
ReservedBytesSet
Header reserved bytes or flags were non-zero.
LengthMismatch
Payload length in the header did not match file bytes.
SourceMismatch
Source fingerprint did not match the authoritative source file.
SchemaMismatch
Schema identity did not match the expected typed payload.
PayloadChecksumMismatch
Payload checksum did not match.
ArchiveChecksumMismatch
Archive checksum did not match.
BytecheckFailed(String)
RKYV byte validation failed.
Json(String)
JSON source parsing failed.
Toml(String)
TOML source parsing failed.
Trait Implementations§
Source§impl Debug for MachineCacheError
impl Debug for MachineCacheError
Source§impl Display for MachineCacheError
impl Display for MachineCacheError
Source§impl Error for MachineCacheError
impl Error for MachineCacheError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for MachineCacheError
impl From<Error> for MachineCacheError
Source§impl From<MachineCacheError> for MachineCacheMiss
impl From<MachineCacheError> for MachineCacheMiss
Source§fn from(source: MachineCacheError) -> Self
fn from(source: MachineCacheError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for MachineCacheError
impl !UnwindSafe for MachineCacheError
impl Freeze for MachineCacheError
impl Send for MachineCacheError
impl Sync for MachineCacheError
impl Unpin for MachineCacheError
impl UnsafeUnpin for MachineCacheError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.