pub enum WalWriterError {
Closed,
IoError(String),
EncodeError(String),
SequenceViolation {
expected: u64,
provided: u64,
},
Poisoned,
}Expand description
Errors that can occur during WAL writing.
Variants§
Closed
The writer was closed.
IoError(String)
I/O error during write.
EncodeError(String)
The event could not be encoded.
SequenceViolation
Sequence number violation (non-increasing or duplicate).
Fields
Poisoned
Writer is permanently poisoned after a truncation-recovery failure. Callers must restart the process.
Trait Implementations§
Source§impl Clone for WalWriterError
impl Clone for WalWriterError
Source§fn clone(&self) -> WalWriterError
fn clone(&self) -> WalWriterError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalWriterError
impl Debug for WalWriterError
Source§impl Display for WalWriterError
impl Display for WalWriterError
Source§impl Error for WalWriterError
impl Error for WalWriterError
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 WalWriterError
impl PartialEq for WalWriterError
impl Eq for WalWriterError
impl StructuralPartialEq for WalWriterError
Auto Trait Implementations§
impl Freeze for WalWriterError
impl RefUnwindSafe for WalWriterError
impl Send for WalWriterError
impl Sync for WalWriterError
impl Unpin for WalWriterError
impl UnsafeUnpin for WalWriterError
impl UnwindSafe for WalWriterError
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