pub enum TransferType {
FixedSize,
VariableSize,
}Expand description
Is this a fixed-size transfer or variable-size transfer?
According to USB 2.0 s5.3.2, the host must behave differently in each case, so needs to know. (In particular, a fixed-size transfer doesn’t have a zero-length packet even if the data fills an exact number of packets – whereas a variable-size transfer does have a zero-length packet in that case.)
Variants§
FixedSize
Both ends know (via other means) how long the transfer should be
VariableSize
Open-ended transfer (the size given is a maximum)
Trait Implementations§
Source§impl Clone for TransferType
impl Clone for TransferType
Source§fn clone(&self) -> TransferType
fn clone(&self) -> TransferType
Returns a duplicate 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 TransferType
impl Debug for TransferType
Source§impl Format for TransferType
impl Format for TransferType
Source§impl PartialEq for TransferType
impl PartialEq for TransferType
impl Copy for TransferType
impl Eq for TransferType
impl StructuralPartialEq for TransferType
Auto Trait Implementations§
impl Freeze for TransferType
impl RefUnwindSafe for TransferType
impl Send for TransferType
impl Sync for TransferType
impl Unpin for TransferType
impl UnsafeUnpin for TransferType
impl UnwindSafe for TransferType
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