Struct PacketIo
struct PacketIo<'a, R, W> {
reader: &'a mut R,
body_buf: &'a mut Vec<u8>,
client: &'a mut Client<JournaledSession>,
writer: &'a mut W,
inbound_aliases: &'a mut InboundAliases,
pending: &'a mut Pending,
msg_tx: &'a Sender<Message>,
keep_alive_dur: Duration,
}Expand description
Bundled I/O and state for processing a single incoming packet.
Fields§
§reader: &'a mut R§body_buf: &'a mut Vec<u8>§client: &'a mut Client<JournaledSession>§writer: &'a mut W§inbound_aliases: &'a mut InboundAliases§pending: &'a mut Pending§msg_tx: &'a Sender<Message>§keep_alive_dur: DurationAuto Trait Implementations§
impl<'a, R, W> Freeze for PacketIo<'a, R, W>
impl<'a, R, W> !RefUnwindSafe for PacketIo<'a, R, W>
impl<'a, R, W> Send for PacketIo<'a, R, W>
impl<'a, R, W> Sync for PacketIo<'a, R, W>
impl<'a, R, W> Unpin for PacketIo<'a, R, W>
impl<'a, R, W> !UnwindSafe for PacketIo<'a, R, W>
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