Enum mem::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), TooBig(Addr, Addr), TooSmall(Addr, Addr), InvalidAddr(Addr), ReadOnly(Addr, bool), WriteOnly(Addr, bool), UnalignedAccess(Addr, Addr), NoData(Addr), InvalidData(Addr), HardwareFault(Addr, &'static str), Uninitialized(Addr), NotImplemented, NotApplicable(Addr), EndianessHelperFail(&'static str, Addr, Addr), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
TooBig(Addr, Addr)
TooSmall(Addr, Addr)
InvalidAddr(Addr)
ReadOnly(Addr, bool)
WriteOnly(Addr, bool)
UnalignedAccess(Addr, Addr)
NoData(Addr)
InvalidData(Addr)
HardwareFault(Addr, &'static str)
Uninitialized(Addr)
NotImplemented
NotApplicable(Addr)
EndianessHelperFail(&'static str, Addr, Addr)
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.