#[repr(C)]pub struct ArchivedRegisterInterfacewhere
u8: Archive,
Vec<EndpointProperties>: Archive,
Vec<u8>: Archive,
Vec<DeviceCapability>: Archive,
Option<CID>: Archive,{
pub interface_number: <u8 as Archive>::Archived,
pub if_class: <u8 as Archive>::Archived,
pub if_subclass: <u8 as Archive>::Archived,
pub if_protocol: <u8 as Archive>::Archived,
pub endpoints: <Vec<EndpointProperties> as Archive>::Archived,
pub interface_functional_descriptors: <Vec<u8> as Archive>::Archived,
pub associated_interface_count: <u8 as Archive>::Archived,
pub capabilities: <Vec<DeviceCapability> as Archive>::Archived,
pub setup_responder: <Option<CID> as Archive>::Archived,
}Expand description
An archived RegisterInterface
Fields§
§interface_number: <u8 as Archive>::ArchivedThe archived counterpart of RegisterInterface::interface_number
if_class: <u8 as Archive>::ArchivedThe archived counterpart of RegisterInterface::if_class
if_subclass: <u8 as Archive>::ArchivedThe archived counterpart of RegisterInterface::if_subclass
if_protocol: <u8 as Archive>::ArchivedThe archived counterpart of RegisterInterface::if_protocol
endpoints: <Vec<EndpointProperties> as Archive>::ArchivedThe archived counterpart of RegisterInterface::endpoints
interface_functional_descriptors: <Vec<u8> as Archive>::ArchivedThe archived counterpart of RegisterInterface::interface_functional_descriptors
associated_interface_count: <u8 as Archive>::ArchivedThe archived counterpart of RegisterInterface::associated_interface_count
capabilities: <Vec<DeviceCapability> as Archive>::ArchivedThe archived counterpart of RegisterInterface::capabilities
setup_responder: <Option<CID> as Archive>::ArchivedThe archived counterpart of RegisterInterface::setup_responder
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedRegisterInterfacewhere
u8: Archive,
Vec<EndpointProperties>: Archive,
Vec<u8>: Archive,
Vec<DeviceCapability>: Archive,
Option<CID>: Archive,
<__C as Fallible>::Error: Trace,
<u8 as Archive>::Archived: CheckBytes<__C>,
<Vec<EndpointProperties> as Archive>::Archived: CheckBytes<__C>,
<Vec<u8> as Archive>::Archived: CheckBytes<__C>,
<Vec<DeviceCapability> as Archive>::Archived: CheckBytes<__C>,
<Option<CID> as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedRegisterInterfacewhere
u8: Archive,
Vec<EndpointProperties>: Archive,
Vec<u8>: Archive,
Vec<DeviceCapability>: Archive,
Option<CID>: Archive,
<__C as Fallible>::Error: Trace,
<u8 as Archive>::Archived: CheckBytes<__C>,
<Vec<EndpointProperties> as Archive>::Archived: CheckBytes<__C>,
<Vec<u8> as Archive>::Archived: CheckBytes<__C>,
<Vec<DeviceCapability> as Archive>::Archived: CheckBytes<__C>,
<Option<CID> as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedRegisterInterfacewhere
u8: Archive,
Vec<EndpointProperties>: Archive,
Vec<u8>: Archive,
Vec<DeviceCapability>: Archive,
Option<CID>: Archive,
<u8 as Archive>::Archived: Portable,
<Vec<EndpointProperties> as Archive>::Archived: Portable,
<Vec<u8> as Archive>::Archived: Portable,
<Vec<DeviceCapability> as Archive>::Archived: Portable,
<Option<CID> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedRegisterInterface
impl RefUnwindSafe for ArchivedRegisterInterface
impl Send for ArchivedRegisterInterface
impl Sync for ArchivedRegisterInterface
impl !Unpin for ArchivedRegisterInterface
impl UnwindSafe for ArchivedRegisterInterface
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.