pub struct SplitInfo { /* private fields */ }Expand description
Per-pipe information necessary to encode a split-transaction token
(USB 2.0 §11.14) or a legacy full-speed PRE packet (USB 1.1 §11.8.6).
Implementations§
Source§impl SplitInfo
impl SplitInfo
Sourcepub const fn new(hub_addr: u8, port: u8, device_speed: SplitSpeed) -> Self
pub const fn new(hub_addr: u8, port: u8, device_speed: SplitSpeed) -> Self
Create a new SplitInfo.
hub_addr is the USB address of the hub that owns the Transaction
Translator; port is the 1-based port number on that hub where the
target device is attached; device_speed is the speed of that target
device (SplitSpeed::Low or SplitSpeed::Full only).
Sourcepub const fn port(self) -> u8
pub const fn port(self) -> u8
1-based port number on the hub where the target device is attached.
Sourcepub const fn device_speed(self) -> SplitSpeed
pub const fn device_speed(self) -> SplitSpeed
Speed of the split target device (low or full only).
Trait Implementations§
impl Copy for SplitInfo
impl Eq for SplitInfo
impl StructuralPartialEq for SplitInfo
Auto Trait Implementations§
impl Freeze for SplitInfo
impl RefUnwindSafe for SplitInfo
impl Send for SplitInfo
impl Sync for SplitInfo
impl Unpin for SplitInfo
impl UnwindSafe for SplitInfo
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