pub struct Interface<Ctx: DeviceContext = Normal>(/* private fields */);
Expand description
A USB interface.
This structure represents the Rust abstraction for a C struct usb_interface
.
The implementation abstracts the usage of a C struct usb_interface
passed
in from the C side.
§Invariants
An Interface
instance represents a valid struct usb_interface
created
by the C portion of the kernel.
Trait Implementations§
Source§impl AlwaysRefCounted for Interface
impl AlwaysRefCounted for Interface
Source§impl Deref for Interface<CoreInternal>
impl Deref for Interface<CoreInternal>
Source§impl From<&Interface<CoreInternal>> for ARef<Interface>
impl From<&Interface<CoreInternal>> for ARef<Interface>
Source§fn from(dev: &Interface<CoreInternal>) -> Self
fn from(dev: &Interface<CoreInternal>) -> Self
Converts to this type from the input type.
impl Send for Interface
impl Sync for Interface
Auto Trait Implementations§
impl<Ctx = Normal> !Freeze for Interface<Ctx>
impl<Ctx = Normal> !RefUnwindSafe for Interface<Ctx>
impl<Ctx = Normal> !Send for Interface<Ctx>
impl<Ctx = Normal> !Sync for Interface<Ctx>
impl<Ctx = Normal> !Unpin for Interface<Ctx>
impl<Ctx> UnwindSafe for Interface<Ctx>where
Ctx: UnwindSafe,
Blanket Implementations§
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more