pub enum UsbEndpointType {
Bulk,
Interrupt,
Isochronous,
}Expand description
USB endpoint type.
Variantsยง
Bulk
Provides reliable data transfer for large payloads.
Data sent through a bulk endpoint is guaranteed to be delivered or generate an error but may be preempted by other data traffic.
Interrupt
Provides reliable data transfer for small payloads.
Data sent through an interrupt endpoint is guaranteed to be delivered or generate an error and is also given dedicated bus time for transmission.
Isochronous
Provides unreliable data transfer for payloads that must be delivered periodically.
They are given dedicated bus time but if a deadline is missed the data is dropped.
Trait Implementationsยง
Sourceยงimpl Clone for UsbEndpointType
impl Clone for UsbEndpointType
Sourceยงfn clone(&self) -> UsbEndpointType
fn clone(&self) -> UsbEndpointType
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 UsbEndpointType
impl Debug for UsbEndpointType
Sourceยงimpl From<UsbEndpointType> for UsbEndpointType
impl From<UsbEndpointType> for UsbEndpointType
Sourceยงfn from(value: UsbEndpointType) -> Self
fn from(value: UsbEndpointType) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for UsbEndpointType
impl Hash for UsbEndpointType
Sourceยงimpl Ord for UsbEndpointType
impl Ord for UsbEndpointType
Sourceยงfn cmp(&self, other: &UsbEndpointType) -> Ordering
fn cmp(&self, other: &UsbEndpointType) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for UsbEndpointType
impl PartialEq for UsbEndpointType
Sourceยงimpl PartialOrd for UsbEndpointType
impl PartialOrd for UsbEndpointType
impl Copy for UsbEndpointType
impl Eq for UsbEndpointType
impl StructuralPartialEq for UsbEndpointType
Auto Trait Implementationsยง
impl Freeze for UsbEndpointType
impl RefUnwindSafe for UsbEndpointType
impl Send for UsbEndpointType
impl Sync for UsbEndpointType
impl Unpin for UsbEndpointType
impl UnwindSafe for UsbEndpointType
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