#[non_exhaustive]pub enum Kind {
Hapi(HapiResult),
NullByte(NulError),
Utf8Error(FromUtf8Error),
Io(Error),
Internal(Cow<'static, str>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hapi(HapiResult)
Error returned by ffi calls
NullByte(NulError)
CString contains null byte
Utf8Error(FromUtf8Error)
String is not a valid utf-8
Io(Error)
IO Error
Internal(Cow<'static, str>)
Misc error message from this crate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl !RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl !UnwindSafe for Kind
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