pub struct CommonPacketIter<'de, D> { /* private fields */ }Expand description
lazy decoder for common packet
Implementations§
Source§impl<'de, D> CommonPacketIter<'de, D>where
D: Decoder<'de>,
impl<'de, D> CommonPacketIter<'de, D>where
D: Decoder<'de>,
pub fn new(decoder: D) -> Result<Self, D::Error>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn next_typed<T>(&mut self) -> Option<Result<CommonPacketItem<T>, D::Error>>where
T: Decode<'de> + 'static,
pub fn next_typed<T>(&mut self) -> Option<Result<CommonPacketItem<T>, D::Error>>where
T: Decode<'de> + 'static,
next common packet item, strong typed
Auto Trait Implementations§
impl<'de, D> Freeze for CommonPacketIter<'de, D>where
D: Freeze,
impl<'de, D> RefUnwindSafe for CommonPacketIter<'de, D>where
D: RefUnwindSafe,
impl<'de, D> Send for CommonPacketIter<'de, D>
impl<'de, D> Sync for CommonPacketIter<'de, D>where
D: Sync,
impl<'de, D> Unpin for CommonPacketIter<'de, D>where
D: Unpin,
impl<'de, D> UnwindSafe for CommonPacketIter<'de, D>where
D: UnwindSafe + RefUnwindSafe,
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