Enum usb_device::endpoint::EndpointType
source · [−]#[repr(u8)]
pub enum EndpointType {
Control,
Isochronous,
Bulk,
Interrupt,
}
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
Control endpoint. Used for device management. Only the host can initiate requests. Usually used only endpoint 0.
Isochronous
Isochronous endpoint. Used for time-critical unreliable data. Not implemented yet.
Bulk
Bulk endpoint. Used for large amounts of best-effort reliable data.
Interrupt
Interrupt endpoint. Used for small amounts of time-critical reliable data.
Trait Implementations
sourceimpl Clone for EndpointType
impl Clone for EndpointType
sourcefn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
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 EndpointType
impl Debug for EndpointType
sourceimpl PartialEq<EndpointType> for EndpointType
impl PartialEq<EndpointType> for EndpointType
sourcefn eq(&self, other: &EndpointType) -> bool
fn eq(&self, other: &EndpointType) -> bool
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
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