Enum embassy_usb_driver::EndpointType
source · #[repr(u8)]pub enum EndpointType {
Control = 0,
Isochronous = 1,
Bulk = 2,
Interrupt = 3,
}
Expand description
USB endpoint transfer type. The values of this enum can be directly cast into u8
to get the
transfer bmAttributes transfer type bits.
Variants§
Control = 0
Control endpoint. Used for device management. Only the host can initiate requests. Usually used only endpoint 0.
Isochronous = 1
Isochronous endpoint. Used for time-critical unreliable data. Not implemented yet.
Bulk = 2
Bulk endpoint. Used for large amounts of best-effort reliable data.
Interrupt = 3
Interrupt endpoint. Used for small amounts of time-critical reliable data.
Trait Implementations§
source§impl Clone for EndpointType
impl Clone for EndpointType
source§fn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
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 EndpointType
impl Debug for EndpointType
source§impl Format for EndpointType
impl Format for EndpointType
source§impl PartialEq for EndpointType
impl PartialEq for EndpointType
source§fn eq(&self, other: &EndpointType) -> bool
fn eq(&self, other: &EndpointType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EndpointType
impl Eq for EndpointType
impl StructuralEq for EndpointType
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnwindSafe for EndpointType
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