pub enum WaiterKey {
Tid(u16),
Fifo,
}Expand description
Key used to route an incoming frame to the right pending waiter.
WaiterKey::Tid: TCP requests get a fresh transaction ID per request; the slave echoes that TID in its response, so the master can demux pipelined responses back to their requesters even when several are in flight at once.WaiterKey::Fifo: RTU and ASCII have no transaction ID, and FIFO serialization guarantees there is at most one outstanding waiter at any given time, so a single shared key is sufficient.
Variants§
Trait Implementations§
impl Copy for WaiterKey
impl Eq for WaiterKey
impl StructuralPartialEq for WaiterKey
Auto Trait Implementations§
impl Freeze for WaiterKey
impl RefUnwindSafe for WaiterKey
impl Send for WaiterKey
impl Sync for WaiterKey
impl Unpin for WaiterKey
impl UnsafeUnpin for WaiterKey
impl UnwindSafe for WaiterKey
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