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
source§fn eq(&self, other: &EndpointAddress) -> bool
fn eq(&self, other: &EndpointAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EndpointAddress
impl Eq for EndpointAddress
impl StructuralEq for EndpointAddress
impl StructuralPartialEq for EndpointAddress
Auto Trait Implementations§
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