pub enum ResyncStateError {
CorruptedFormat,
Io(Error),
Other(String),
}Expand description
Error type for the persisted resync/MRF state files (backlog#1845 step 7:
renamed from the crate-generic Error, with Io kept typed instead of
collapsing into a string so callers can still classify the io failure).
Variants§
Trait Implementations§
Source§impl Debug for ResyncStateError
impl Debug for ResyncStateError
Source§impl Display for ResyncStateError
impl Display for ResyncStateError
Source§impl Error for ResyncStateError
impl Error for ResyncStateError
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 From<Error> for ResyncStateError
impl From<Error> for ResyncStateError
Source§impl From<Error> for ResyncStateError
impl From<Error> for ResyncStateError
Source§impl From<FromUtf8Error> for ResyncStateError
impl From<FromUtf8Error> for ResyncStateError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<NumValueReadError> for ResyncStateError
impl From<NumValueReadError> for ResyncStateError
Source§fn from(err: NumValueReadError) -> Self
fn from(err: NumValueReadError) -> Self
Converts to this type from the input type.
Source§impl From<ValueReadError> for ResyncStateError
impl From<ValueReadError> for ResyncStateError
Source§fn from(err: ValueReadError) -> Self
fn from(err: ValueReadError) -> Self
Converts to this type from the input type.
Source§impl From<ValueWriteError> for ResyncStateError
impl From<ValueWriteError> for ResyncStateError
Source§fn from(err: ValueWriteError) -> Self
fn from(err: ValueWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ResyncStateError
impl !UnwindSafe for ResyncStateError
impl Freeze for ResyncStateError
impl Send for ResyncStateError
impl Sync for ResyncStateError
impl Unpin for ResyncStateError
impl UnsafeUnpin for ResyncStateError
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