pub enum EndpointType {
Control,
Isochronous {
synchronization: IsoSynchronization,
usage: IsoUsage,
},
Bulk,
Interrupt,
}Expand description
USB endpoint transfer type.
Variants§
Control
Control endpoint — only EP0 uses this in practice.
Isochronous
Isochronous endpoint — time-critical, unreliable.
Bulk
Bulk endpoint — large, reliable, best-effort.
Interrupt
Interrupt endpoint — small, reliable, bounded latency.
Implementations§
Source§impl EndpointType
impl EndpointType
Sourcepub fn bm_attributes(self) -> u8
pub fn bm_attributes(self) -> u8
Encode this type into the bmAttributes transfer-type field (USB 2.0 §9.6.6).
Trait Implementations§
Source§impl Clone for EndpointType
impl Clone for EndpointType
impl Copy for EndpointType
Source§impl Debug for EndpointType
impl Debug for EndpointType
impl Eq for EndpointType
Source§impl Format for EndpointType
impl Format for EndpointType
Source§impl PartialEq for EndpointType
impl PartialEq for EndpointType
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl Forget for EndpointType
impl Freeze for EndpointType
impl Move for EndpointType
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnsafeUnpin 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