#[repr(u32)]
pub enum Status {
Success,
Failure,
MemFailure,
InvalidArgument,
SetupIncomplete,
InvalidAccess,
PacketTooBig,
BufferExhausted,
TooManyPackets,
SharingServiceBusy,
}Variants
Success
Failure
MemFailure
InvalidArgument
SetupIncomplete
InvalidAccess
PacketTooBig
BufferExhausted
TooManyPackets
SharingServiceBusy
Implementations
Trait Implementations
sourceimpl TryFrom<u32> for Status
impl TryFrom<u32> for Status
type Error = TryFromPrimitiveError<Status>
type Error = TryFromPrimitiveError<Status>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Status
impl TryFromPrimitive for Status
type Primitive = u32
const NAME: &'static str = "Status"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Eq for Status
impl StructuralEq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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