pub struct SimplePacket {
pub block_length: u32,
pub original_length: u32,
pub content: Vec<u8>,
}Fields§
§block_length: u32§original_length: u32§content: Vec<u8>Implementations§
Source§impl SimplePacket
impl SimplePacket
pub fn read<R: Read>( reader: &mut R, byte_order: Endianness, ) -> Result<Self, PcapNgParseError>
Trait Implementations§
Source§impl Block for SimplePacket
impl Block for SimplePacket
Source§fn minimum_size() -> usize
fn minimum_size() -> usize
Minimum size of the block, including the header Read more
Source§fn read_with_header<R: Read>(
reader: &mut R,
header: &BlockHeader,
byte_order: Option<Endianness>,
) -> Result<Self, PcapNgParseError>where
Self: Sized,
fn read_with_header<R: Read>(
reader: &mut R,
header: &BlockHeader,
byte_order: Option<Endianness>,
) -> Result<Self, PcapNgParseError>where
Self: Sized,
Reads the block from the reader with the given header and byte order Read more
Source§impl Clone for SimplePacket
impl Clone for SimplePacket
Source§fn clone(&self) -> SimplePacket
fn clone(&self) -> SimplePacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePacket
impl Debug for SimplePacket
Source§impl PartialEq for SimplePacket
impl PartialEq for SimplePacket
impl Eq for SimplePacket
impl StructuralPartialEq for SimplePacket
Auto Trait Implementations§
impl Freeze for SimplePacket
impl RefUnwindSafe for SimplePacket
impl Send for SimplePacket
impl Sync for SimplePacket
impl Unpin for SimplePacket
impl UnwindSafe for SimplePacket
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