Struct usb_device::endpoint::EndpointAddress
source · [−]pub struct EndpointAddress(_);
Expand description
Type-safe endpoint address.
Implementations
sourceimpl EndpointAddress
impl EndpointAddress
sourcepub fn from_parts(index: usize, dir: UsbDirection) -> Self
pub fn from_parts(index: usize, dir: UsbDirection) -> Self
Constructs a new EndpointAddress with the given index and direction.
sourcepub fn direction(&self) -> UsbDirection
pub fn direction(&self) -> UsbDirection
Gets the direction part of the address.
Trait Implementations
sourceimpl Clone for EndpointAddress
impl Clone for EndpointAddress
sourcefn clone(&self) -> EndpointAddress
fn clone(&self) -> EndpointAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EndpointAddress
impl Debug for EndpointAddress
sourceimpl From<EndpointAddress> for u8
impl From<EndpointAddress> for u8
sourcefn from(addr: EndpointAddress) -> u8
fn from(addr: EndpointAddress) -> u8
Converts to this type from the input type.
sourceimpl From<u8> for EndpointAddress
impl From<u8> for EndpointAddress
sourcefn from(addr: u8) -> EndpointAddress
fn from(addr: u8) -> EndpointAddress
Converts to this type from the input type.
sourceimpl PartialEq<EndpointAddress> for EndpointAddress
impl PartialEq<EndpointAddress> for EndpointAddress
sourcefn eq(&self, other: &EndpointAddress) -> bool
fn eq(&self, other: &EndpointAddress) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more