pub enum CacheError {
Show 17 variants
Io(Error),
BadMagic {
found: [u8; 8],
},
UnsupportedFormatVersion {
found: u32,
supported: u32,
},
ArkFfVersionMismatch {
found: String,
expected: String,
},
IdentifierTooLong {
len: usize,
max: usize,
},
IdentifierMismatch {
found: String,
expected: String,
},
IdentifierInvalidUtf8,
DuplicateSectionTag {
tag: u32,
},
MissingSection {
tag: u32,
},
SectionLengthMismatch {
tag: u32,
expected: u64,
found: u64,
},
MisalignedSection {
tag: u32,
offset: u64,
},
TruncatedFile,
PayloadNotFieldAligned {
tag: u32,
length: u64,
},
UnknownFeatureFlagBits {
bits: u32,
},
LookupConstraintSystem(String),
UnknownGateType {
tag: u16,
},
InvalidDomainSize {
size: u64,
},
}Expand description
Errors surfaced by the cache read/write paths.
Variants§
Io(Error)
BadMagic
UnsupportedFormatVersion
ArkFfVersionMismatch
IdentifierTooLong
IdentifierMismatch
IdentifierInvalidUtf8
DuplicateSectionTag
MissingSection
SectionLengthMismatch
MisalignedSection
TruncatedFile
PayloadNotFieldAligned
Field element count in a payload does not divide the payload length cleanly.
UnknownFeatureFlagBits
ConstraintSystem::feature_flags bitmap had an unknown bit set.
LookupConstraintSystem(String)
The lazily-built LookupConstraintSystem failed to materialise at
write time (e.g. a lookup-table id collision or an over-long table).
The wrapped string is the underlying LookupError’s message.
UnknownGateType
A pruned gate carried a type tag with no corresponding GateType.
InvalidDomainSize
The stored d1 domain size could not be turned into an evaluation
domain (not a power of two, or too large for the field’s 2-adicity).
Trait Implementations§
Source§impl Debug for CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for CacheError
impl !UnwindSafe for CacheError
impl Freeze for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnsafeUnpin for CacheError
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