#[repr(u8)]pub enum SynchronizationType {
NoSynchronization = 0,
Asynchronous = 1,
Adaptive = 2,
Synchronous = 3,
}
Expand description
USB endpoint synchronization type. The values of this enum can be directly
cast into u8
to get the bmAttributes synchronization type bits.
Values other than NoSynchronization
are only allowed on isochronous endpoints.
Variants§
NoSynchronization = 0
No synchronization is used.
Asynchronous = 1
Unsynchronized, although sinks provide data rate feedback.
Adaptive = 2
Synchronized using feedback or feedforward data rate information.
Synchronous = 3
Synchronized to the USB’s SOF.
Trait Implementations§
Source§impl Clone for SynchronizationType
impl Clone for SynchronizationType
Source§fn clone(&self) -> SynchronizationType
fn clone(&self) -> SynchronizationType
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 SynchronizationType
impl Debug for SynchronizationType
Source§impl Format for SynchronizationType
impl Format for SynchronizationType
Source§impl PartialEq for SynchronizationType
impl PartialEq for SynchronizationType
impl Copy for SynchronizationType
impl Eq for SynchronizationType
impl StructuralPartialEq for SynchronizationType
Auto Trait Implementations§
impl Freeze for SynchronizationType
impl RefUnwindSafe for SynchronizationType
impl Send for SynchronizationType
impl Sync for SynchronizationType
impl Unpin for SynchronizationType
impl UnwindSafe for SynchronizationType
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