pub enum AppendError {
Io(Error),
FreshIndexNotWritable,
FreshSegmentNotWritable,
MessageSizeExceeded,
InvalidOffset,
}
Expand description
Error enum for commit log Append operation.
Variants§
Io(Error)
The underlying file operations failed during the append attempt.
FreshIndexNotWritable
A new index was created, but was unable to receive writes during the append operation. This could point to exhaustion of machine resources or other I/O issue.
FreshSegmentNotWritable
A new segment was created, but was unable to receive writes during the append operation. This could point to exhaustion of machine resources or other I/O issue.
MessageSizeExceeded
If a message that is larger than the per message size is tried to be appended it will not be allowed an will return an error
InvalidOffset
The buffer contains an invalid offset value
Trait Implementations§
Source§impl Debug for AppendError
impl Debug for AppendError
Source§impl Display for AppendError
impl Display for AppendError
Source§impl Error for AppendError
impl Error for AppendError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for AppendError
impl From<Error> for AppendError
Source§fn from(e: Error) -> AppendError
fn from(e: Error) -> AppendError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppendError
impl !RefUnwindSafe for AppendError
impl Send for AppendError
impl Sync for AppendError
impl Unpin for AppendError
impl !UnwindSafe for AppendError
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