pub enum MrfV2Error {
InvalidMagic,
Truncated,
UnsupportedNamespace {
namespace: String,
},
UnsupportedFormat {
format: u16,
},
UnsupportedVersion {
version: u16,
},
InvalidVersionRange {
version: u16,
min_reader_version: u16,
},
RollbackFenced {
min_reader_version: u16,
reader_version: u16,
},
ReservedHeaderBits {
bits: u16,
},
UnknownCapabilities {
bits: u64,
},
MissingCapabilities {
required: u64,
available: u64,
},
PayloadLengthMismatch {
declared: u32,
actual: usize,
},
WriterEnabled,
}Variants§
InvalidMagic
Truncated
UnsupportedNamespace
UnsupportedFormat
UnsupportedVersion
InvalidVersionRange
RollbackFenced
ReservedHeaderBits
UnknownCapabilities
MissingCapabilities
PayloadLengthMismatch
WriterEnabled
Trait Implementations§
Source§impl Clone for MrfV2Error
impl Clone for MrfV2Error
Source§impl Debug for MrfV2Error
impl Debug for MrfV2Error
Source§impl Display for MrfV2Error
impl Display for MrfV2Error
impl Eq for MrfV2Error
Source§impl Error for MrfV2Error
impl Error for MrfV2Error
1.30.0 · 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()
Source§impl PartialEq for MrfV2Error
impl PartialEq for MrfV2Error
impl StructuralPartialEq for MrfV2Error
Auto Trait Implementations§
impl Freeze for MrfV2Error
impl RefUnwindSafe for MrfV2Error
impl Send for MrfV2Error
impl Sync for MrfV2Error
impl Unpin for MrfV2Error
impl UnsafeUnpin for MrfV2Error
impl UnwindSafe for MrfV2Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.