#[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
impl Copy for EndpointType
impl Eq for EndpointType
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl Freeze for EndpointType
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
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
)