Skip to main content

JournalError

Enum JournalError 

pub enum JournalError {
Show 15 variants Io(Error), Serialize(String), Deserialize(String), SeqGap { expected: u64, got: u64, }, DuplicateEventId(Uuid), TruncatedRecord, UnsupportedSchemaVersion(u16), PayloadTooLarge { size: usize, }, NoValidFrames { file_len: u64, }, RunIdMismatch { expected: Uuid, got: Uuid, }, InconsistentRunId { seq: u64, expected: Uuid, got: Uuid, }, BackgroundWriterSend(String), BackgroundWriterJoin(String), RecordHashMismatch { seq: u64, expected: String, computed: String, }, HashChainBreak { seq: u64, prev_hash: Option<String>, expected: Option<String>, },
}

Variants§

§

Io(Error)

§

Serialize(String)

§

Deserialize(String)

§

SeqGap

Fields

§expected: u64
§got: u64
§

DuplicateEventId(Uuid)

§

TruncatedRecord

§

UnsupportedSchemaVersion(u16)

§

PayloadTooLarge

Fields

§size: usize
§

NoValidFrames

Fields

§file_len: u64
§

RunIdMismatch

Fields

§expected: Uuid
§got: Uuid
§

InconsistentRunId

Fields

§seq: u64
§expected: Uuid
§got: Uuid
§

BackgroundWriterSend(String)

§

BackgroundWriterJoin(String)

§

RecordHashMismatch

Fields

§seq: u64
§expected: String
§computed: String
§

HashChainBreak

Fields

§seq: u64
§prev_hash: Option<String>
§expected: Option<String>

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

§

impl From<JournalError> for ReplayError

§

fn from(source: JournalError) -> 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> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

§

fn in_current_span(self) -> Instrumented<Self>

§

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>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

§

fn with_current_subscriber(self) -> WithDispatch<Self>

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,