pub enum Error {
InvalidMagmaHandle,
IoError(Error),
NulError(NulError),
ParseIntError(ParseIntError),
RustixError(Errno),
TryFromIntError(TryFromIntError),
Unsupported,
Utf8Error(Utf8Error),
WithContext(&'static str),
}Expand description
An error generated while using this crate.
Variants§
InvalidMagmaHandle
An error with the handle
IoError(Error)
An input/output error occurred.
NulError(NulError)
Nul crate error.
ParseIntError(ParseIntError)
An attempted integer parsing failed.
RustixError(Errno)
Rustix crate error.
TryFromIntError(TryFromIntError)
An attempted integer conversion failed.
Unsupported
The command is unsupported.
Utf8Error(Utf8Error)
Utf8 error.
WithContext(&'static str)
An error with a free form context, similar to anyhow
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Errno> for Error
Available on Android or Linux only.
impl From<Errno> for Error
Available on Android or Linux only.
Source§fn from(e: RustixError) -> Error
fn from(e: RustixError) -> Error
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(e: ParseIntError) -> Error
fn from(e: ParseIntError) -> Error
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(e: TryFromIntError) -> Error
fn from(e: TryFromIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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