Enum sonnerie::WriteFailure
source · pub enum WriteFailure {
KeyOrderingViolation {
first: String,
second: String,
},
TimeOrderingViolation {
first: NaiveDateTime,
second: NaiveDateTime,
key: String,
},
IncorrectLength(usize),
IOError(Error),
}
Expand description
A reason a write could not be completed
Variants§
KeyOrderingViolation
The key second
does not come lexicographically after first
, but they were added in that order
TimeOrderingViolation
The timestamp second
does not come chronologically after first
, but they were added in that order, in the same key (key
)
IncorrectLength(usize)
The size of data was not expected
IOError(Error)
An IO error from the OS
Trait Implementations§
source§impl Debug for WriteFailure
impl Debug for WriteFailure
source§impl Display for WriteFailure
impl Display for WriteFailure
source§impl Error for WriteFailure
impl Error for WriteFailure
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WriteFailure
impl Send for WriteFailure
impl Sync for WriteFailure
impl Unpin for WriteFailure
impl !UnwindSafe for WriteFailure
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more