#[non_exhaustive]pub enum EventLogError {
Journal(Error),
Checkpoint(Error),
Integrity(IntegrityError),
}Expand description
Failures from opening, appending to, or replaying an crate::EventLog.
This is a thin wrapper over the underlying
commonware_storage::journal::Error: every fallible event-log operation
delegates to the journal primitive, so the storage error is the only failure
mode and is preserved verbatim as the Self::Journal source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Journal(Error)
The underlying commonware-storage journal returned an error while opening, appending, committing, or replaying.
Checkpoint(Error)
The durable event-count checkpoint (crate::checkpoint) failed to
open, read, or sync.
Integrity(IntegrityError)
A partition’s tamper-evidence tree could not be rebuilt, or its root could not be signed.
A rewrite reports this rather than proceeding: every root the partition carried was signed over content the rewrite changes, so a rewrite that cannot sign a fresh one would leave a partition whose signed history does not describe what it holds.
Trait Implementations§
Source§impl Debug for EventLogError
impl Debug for EventLogError
Source§impl Display for EventLogError
impl Display for EventLogError
Source§impl Error for EventLogError
impl Error for EventLogError
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 EventLogError
impl From<Error> for EventLogError
Source§impl From<Error> for EventLogError
impl From<Error> for EventLogError
Source§impl From<IntegrityError> for EventLogError
impl From<IntegrityError> for EventLogError
Source§fn from(source: IntegrityError) -> Self
fn from(source: IntegrityError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for EventLogError
impl !UnwindSafe for EventLogError
impl Freeze for EventLogError
impl Send for EventLogError
impl Sync for EventLogError
impl Unpin for EventLogError
impl UnsafeUnpin for EventLogError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more