#[repr(u8)]pub enum ArchivedUsbError{
XousError(<usize as Archive>::Archived),
EhciError(<EhciError as Archive>::Archived),
Other,
NotFound,
NotClaimed,
DataTooLarge,
AlreadyRegistered,
WrongDirection,
Busy,
HostDisconnected,
InvalidParameter,
InterfaceDisabled,
}Expand description
An archived UsbError
Variants§
XousError(<usize as Archive>::Archived)
The archived counterpart of UsbError::XousError
Tuple Fields
§
0: <usize as Archive>::ArchivedThe archived counterpart of UsbError::XousError::0
EhciError(<EhciError as Archive>::Archived)
The archived counterpart of UsbError::EhciError
Tuple Fields
§
0: <EhciError as Archive>::ArchivedThe archived counterpart of UsbError::EhciError::0
Other
The archived counterpart of UsbError::Other
NotFound
The archived counterpart of UsbError::NotFound
NotClaimed
The archived counterpart of UsbError::NotClaimed
DataTooLarge
The archived counterpart of UsbError::DataTooLarge
AlreadyRegistered
The archived counterpart of UsbError::AlreadyRegistered
WrongDirection
The archived counterpart of UsbError::WrongDirection
Busy
The archived counterpart of UsbError::Busy
HostDisconnected
The archived counterpart of UsbError::HostDisconnected
InvalidParameter
The archived counterpart of UsbError::InvalidParameter
InterfaceDisabled
The archived counterpart of UsbError::InterfaceDisabled
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUsbError
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUsbError
impl Portable for ArchivedUsbError
Auto Trait Implementations§
impl Freeze for ArchivedUsbError
impl RefUnwindSafe for ArchivedUsbError
impl Send for ArchivedUsbError
impl Sync for ArchivedUsbError
impl Unpin for ArchivedUsbError
impl UnwindSafe for ArchivedUsbError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.