pub struct Transport { /* private fields */ }Expand description
The single transport connection for a slot.
Implementations§
Source§impl Transport
impl Transport
Sourcepub fn with_timing(self, poll: Duration, reply: Duration) -> Self
pub fn with_timing(self, poll: Duration, reply: Duration) -> Self
Override the poll interval / reply timeout.
Sourcepub fn send_spdu(&mut self, spdu: &[u8]) -> Out
pub fn send_spdu(&mut self, spdu: &[u8]) -> Out
Queue an upper-layer SPDU to send (wrapped in a T_Data_Last).
Sourcepub fn tick(&mut self, elapsed: Duration) -> Out
pub fn tick(&mut self, elapsed: Duration) -> Out
Advance logical time by elapsed: poll if due, or time out a pending
reply.
Sourcepub fn on_frame(&mut self, frame: &[u8]) -> Out
pub fn on_frame(&mut self, frame: &[u8]) -> Out
Handle one link-layer frame read from the device.
A module frame is a leading object (C_T_C_Reply / T_Data_* / …)
followed by an appended T_SB, or a standalone T_SB (the reply to a
poll with nothing queued). The T_SB’s DA bit drives whether the host
must T_RCV next.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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