Struct embassy_usb_driver::EndpointAddress
source ยท pub struct EndpointAddress(/* private fields */);
Expand description
Type-safe endpoint address.
Implementationsยง
sourceยงimpl EndpointAddress
impl EndpointAddress
sourcepub fn from_parts(index: usize, dir: Direction) -> Self
pub fn from_parts(index: usize, dir: Direction) -> Self
Constructs a new EndpointAddress with the given index and direction.
Trait Implementationsยง
sourceยงimpl Clone for EndpointAddress
impl Clone for EndpointAddress
sourceยงfn clone(&self) -> EndpointAddress
fn clone(&self) -> EndpointAddress
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceยงimpl Debug for EndpointAddress
impl Debug for EndpointAddress
sourceยงimpl Format for EndpointAddress
impl Format for EndpointAddress
sourceยงimpl From<EndpointAddress> for u8
impl From<EndpointAddress> for u8
sourceยงfn from(addr: EndpointAddress) -> u8
fn from(addr: EndpointAddress) -> u8
Converts to this type from the input type.
sourceยงimpl From<u8> for EndpointAddress
impl From<u8> for EndpointAddress
sourceยงfn from(addr: u8) -> EndpointAddress
fn from(addr: u8) -> EndpointAddress
Converts to this type from the input type.
sourceยงimpl PartialEq for EndpointAddress
impl PartialEq for EndpointAddress
impl Copy for EndpointAddress
impl Eq for EndpointAddress
impl StructuralPartialEq for EndpointAddress
Auto Trait Implementationsยง
impl Freeze for EndpointAddress
impl RefUnwindSafe for EndpointAddress
impl Send for EndpointAddress
impl Sync for EndpointAddress
impl Unpin for EndpointAddress
impl UnwindSafe for EndpointAddress
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)