Enum libblkid_rs::BlkidErr
source · pub enum BlkidErr {
Null(NulError),
BytesWithNull(FromBytesWithNulError),
IntoString(IntoStringError),
PositiveReturnCode,
InvalidConv,
UTF8(Utf8Error),
FromUTF8(FromUtf8Error),
IO(Error),
Uuid(Error),
Other(String),
LibErr,
}
Expand description
Error representing all errors returned by binding methods
Variants§
Null(NulError)
Wraps std::ffi::NulError
BytesWithNull(FromBytesWithNulError)
Wraps std::ffi::FromBytesWithNulError
IntoString(IntoStringError)
Wraps std::ffi::IntoStringError
PositiveReturnCode
A libblkid method returned a positive error code which means nothing
InvalidConv
A conversion failed
UTF8(Utf8Error)
UTF8 error
FromUTF8(FromUtf8Error)
UTF8 error
IO(Error)
IO error
Uuid(Error)
UUID error
Other(String)
An unspecified error type and an error message providing more information
LibErr
An error code was returned by libblkid
Trait Implementations§
source§impl Error for BlkidErr
impl Error for BlkidErr
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<FromBytesWithNulError> for BlkidErr
impl From<FromBytesWithNulError> for BlkidErr
source§fn from(v: FromBytesWithNulError) -> Self
fn from(v: FromBytesWithNulError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for BlkidErr
impl From<FromUtf8Error> for BlkidErr
source§fn from(v: FromUtf8Error) -> Self
fn from(v: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlkidErr
impl !RefUnwindSafe for BlkidErr
impl Send for BlkidErr
impl Sync for BlkidErr
impl Unpin for BlkidErr
impl !UnwindSafe for BlkidErr
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