pub struct Packetizer<'a, R: Bits, P: Packetization<R>> { /* private fields */ }Available on crate feature
alloc only.Expand description
A packetizer binds a Read stream and a Packetization strategy
Trait Implementations§
Source§impl<R, P> PacketTransport for Packetizer<'_, R, P>where
R: Bits,
P: Packetization<R>,
impl<R, P> PacketTransport for Packetizer<'_, R, P>where
R: Bits,
P: Packetization<R>,
Source§fn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>
fn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>
Polls the next packet from the underlying transport
type Error = BitsError
Auto Trait Implementations§
impl<'a, R, P> Freeze for Packetizer<'a, R, P>
impl<'a, R, P> RefUnwindSafe for Packetizer<'a, R, P>where
R: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, R, P> Send for Packetizer<'a, R, P>
impl<'a, R, P> Sync for Packetizer<'a, R, P>
impl<'a, R, P> Unpin for Packetizer<'a, R, P>
impl<'a, R, P> !UnwindSafe for Packetizer<'a, R, P>
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