Enum Received
pub(crate) enum Received {
Packet {
packet: Bytes,
from: Option<Port>,
},
ResumeTx {
from: Option<Port>,
},
}Expand description
A packet received by Socket::try_recv.
Variants§
Packet
A packet and the port it came from.
The router only reports the sender of data packets. Control port messages have none.
ResumeTx
The port from allows sending again after flow control kicked in.
Trait Implementations§
impl Eq for Received
impl StructuralPartialEq for Received
Auto Trait Implementations§
impl !Freeze for Received
impl RefUnwindSafe for Received
impl Send for Received
impl Sync for Received
impl Unpin for Received
impl UnsafeUnpin for Received
impl UnwindSafe for Received
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