JournalError

Enum JournalError 

#[non_exhaustive]
pub enum JournalError {
Show 15 variants Io(Error), UnsupportedVersion { found: u16, supported: u16, }, BadMagic, UnsupportedFrameFormat { found: u16, supported: u16, }, UnsupportedFlags { found: u16, supported: u16, }, SequenceGap { expected: u64, found: u64, }, SequenceExhausted { seq: u64, }, FrameTooLarge { len: u32, max: u32, }, CorruptFrame { seq: u64, }, ChecksumMismatch { seq: u64, stored: u32, computed: u32, }, InvalidReaderPosition { reason: &'static str, }, EmptyPayloadKind, PayloadKindTooLong { len: usize, max: usize, }, RecordTooLong { encoded_len: usize, }, Malformed { reason: &'static str, },
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
§

Io(Error)

§

UnsupportedVersion

Fields

§found: u16
§supported: u16
§

BadMagic

§

UnsupportedFrameFormat

Fields

§found: u16
§supported: u16
§

UnsupportedFlags

Fields

§found: u16
§supported: u16
§

SequenceGap

Fields

§expected: u64
§found: u64
§

SequenceExhausted

Fields

§seq: u64
§

FrameTooLarge

Fields

§len: u32
§max: u32
§

CorruptFrame

Fields

§seq: u64
§

ChecksumMismatch

Fields

§seq: u64
§stored: u32
§computed: u32
§

InvalidReaderPosition

Fields

§reason: &'static str
§

EmptyPayloadKind

§

PayloadKindTooLong

Fields

§len: usize
§max: usize
§

RecordTooLong

Fields

§encoded_len: usize
§

Malformed

Fields

§reason: &'static str

Trait Implementations§

§

impl Debug for JournalError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

§

impl Display for JournalError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

§

impl Error for JournalError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

1.0.0§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
§

impl From<Error> for JournalError

§

fn from(source: Error) -> Self

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

§

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

§

impl<T> ToString for T
where T: Display + ?Sized,

§

fn to_string(&self) -> String

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>