pub enum OffsetError {
IoError(Error),
SerializationError(String),
SourceNotFound(String),
LockError(String),
InvalidOffset(String),
}Expand description
Error type for offset operations.
Variants§
IoError(Error)
IO error during persistence.
SerializationError(String)
Serialization/deserialization error.
SourceNotFound(String)
Source not found.
LockError(String)
Lock acquisition failed.
InvalidOffset(String)
Invalid offset format.
Trait Implementations§
Source§impl Debug for OffsetError
impl Debug for OffsetError
Source§impl Display for OffsetError
impl Display for OffsetError
Source§impl Error for OffsetError
impl Error for OffsetError
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()
Auto Trait Implementations§
impl Freeze for OffsetError
impl !RefUnwindSafe for OffsetError
impl Send for OffsetError
impl Sync for OffsetError
impl Unpin for OffsetError
impl !UnwindSafe for OffsetError
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