#[repr(u8)]
pub enum Error {
NotSupported,
Disabled,
NotReady,
}
Variants
NotSupported
Disabled
NotReady
Trait Implementations
sourceimpl TryFrom<u8> for Error
impl TryFrom<u8> for Error
type Error = TryFromPrimitiveError<Error>
type Error = TryFromPrimitiveError<Error>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Error
impl TryFromPrimitive for Error
type Primitive = u8
const NAME: &'static str = "Error"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more