pub struct CorruptionError {
pub message: Cow<'static, str>,
}Expand description
An error caused by malformed or internally inconsistent data.
Fields§
§message: Cow<'static, str>The error message.
Implementations§
Trait Implementations§
Source§impl Debug for CorruptionError
impl Debug for CorruptionError
Source§impl Display for CorruptionError
impl Display for CorruptionError
Source§impl Error for CorruptionError
impl Error for CorruptionError
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 From<&'static str> for CorruptionError
impl From<&'static str> for CorruptionError
Source§impl From<Message> for CorruptionError
impl From<Message> for CorruptionError
Auto Trait Implementations§
impl Freeze for CorruptionError
impl RefUnwindSafe for CorruptionError
impl Send for CorruptionError
impl Sync for CorruptionError
impl Unpin for CorruptionError
impl UnsafeUnpin for CorruptionError
impl UnwindSafe for CorruptionError
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