pub struct Parser<R: Read> { /* private fields */ }Expand description
Parser for sFlow v5 datagrams
Implementations§
Source§impl<R: Read> Parser<R>
impl<R: Read> Parser<R>
Sourcepub fn parse_datagram(&mut self) -> Result<SFlowDatagram>
pub fn parse_datagram(&mut self) -> Result<SFlowDatagram>
Parse an sFlow v5 datagram
Auto Trait Implementations§
impl<R> Freeze for Parser<R>where
R: Freeze,
impl<R> RefUnwindSafe for Parser<R>where
R: RefUnwindSafe,
impl<R> Send for Parser<R>where
R: Send,
impl<R> Sync for Parser<R>where
R: Sync,
impl<R> Unpin for Parser<R>where
R: Unpin,
impl<R> UnwindSafe for Parser<R>where
R: UnwindSafe,
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