pub enum EndpointType {
Control,
Isochronous {
synchronization: IsochronousSynchronizationType,
usage: IsochronousUsageType,
},
Bulk,
Interrupt,
}
Expand description
USB endpoint transfer type.
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.
See USB 2.0 spec section 5.12 “Special Considerations for Isochronous Transfers”
Fields
§
synchronization: IsochronousSynchronizationType
Synchronization model used for the data stream that this endpoint relates to.
§
usage: IsochronousUsageType
Endpoint’s role in the synchronization model selected by Self::Isochronous::synchronization.
Bulk
Bulk endpoint. Used for large amounts of best-effort reliable data.
Interrupt
Interrupt endpoint. Used for small amounts of time-critical reliable data.
Implementations§
Source§impl EndpointType
impl EndpointType
Sourcepub fn to_bm_attributes(&self) -> u8
pub fn to_bm_attributes(&self) -> u8
Format EndpointType for use in bmAttributes transfer type field USB 2.0 spec section 9.6.6
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 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