pub enum TransferKind {
Control(ControlSetup),
Bulk,
Interrupt,
Isochronous {
packet_lengths: Vec<usize>,
},
}Variants§
Implementations§
Source§impl TransferKind
impl TransferKind
pub fn get_control(&self) -> Option<&ControlSetup>
pub fn iso_packet_lengths(&self) -> Option<&[usize]>
Trait Implementations§
Source§impl Clone for TransferKind
impl Clone for TransferKind
Source§fn clone(&self) -> TransferKind
fn clone(&self) -> TransferKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransferKind
impl RefUnwindSafe for TransferKind
impl Send for TransferKind
impl Sync for TransferKind
impl Unpin for TransferKind
impl UnsafeUnpin for TransferKind
impl UnwindSafe for TransferKind
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