#[repr(u8)]pub enum ArchivedUsbEventwhere
usize: Archive,
DescriptorSet: Archive,{
Connect {
handle: <usize as Archive>::Archived,
descriptors: <DescriptorSet as Archive>::Archived,
},
Disconnect {
handle: <usize as Archive>::Archived,
},
}Expand description
An archived UsbEvent
Variants§
Connect
The archived counterpart of UsbEvent::Connect
Fields
§
handle: <usize as Archive>::ArchivedThe archived counterpart of UsbEvent::Connect::handle
§
descriptors: <DescriptorSet as Archive>::ArchivedThe archived counterpart of UsbEvent::Connect::descriptors
Disconnect
The archived counterpart of UsbEvent::Disconnect
Fields
§
handle: <usize as Archive>::ArchivedThe archived counterpart of UsbEvent::Disconnect::handle
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUsbEventwhere
usize: Archive,
DescriptorSet: Archive,
<__C as Fallible>::Error: Source,
<usize as Archive>::Archived: CheckBytes<__C>,
<DescriptorSet as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUsbEventwhere
usize: Archive,
DescriptorSet: Archive,
<__C as Fallible>::Error: Source,
<usize as Archive>::Archived: CheckBytes<__C>,
<DescriptorSet as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedUsbEventwhere
usize: Archive,
DescriptorSet: Archive,
<usize as Archive>::Archived: Portable,
<DescriptorSet as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedUsbEvent
impl RefUnwindSafe for ArchivedUsbEvent
impl Send for ArchivedUsbEvent
impl Sync for ArchivedUsbEvent
impl !Unpin for ArchivedUsbEvent
impl !UnsafeUnpin for ArchivedUsbEvent
impl UnwindSafe for ArchivedUsbEvent
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.