Enum mesa3d_util::MesaError
source · pub enum MesaError {
InvalidMesaHandle,
IoError(Error),
NulError(NulError),
RustixError(Errno),
TryFromIntError(TryFromIntError),
Unsupported,
Utf8Error(Utf8Error),
WithContext(&'static str),
}
Expand description
An error generated while using this crate.
Variants§
InvalidMesaHandle
An error with the MesaHandle
IoError(Error)
An input/output error occured.
NulError(NulError)
Nul crate error.
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 MesaError
impl Error for MesaError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TryFromIntError> for MesaError
impl From<TryFromIntError> for MesaError
source§fn from(e: TryFromIntError) -> MesaError
fn from(e: TryFromIntError) -> MesaError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MesaError
impl !RefUnwindSafe for MesaError
impl Send for MesaError
impl Sync for MesaError
impl Unpin for MesaError
impl !UnwindSafe for MesaError
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