pub struct InterfaceDescriptionBlock {
pub block_length: u32,
pub link_type: LinkType,
pub reserved: [u8; 2],
pub snap_length: u32,
pub options: Option<BlockOptions>,
}Fields§
§block_length: u32§link_type: LinkType§reserved: [u8; 2]§snap_length: u32§options: Option<BlockOptions>Implementations§
Source§impl InterfaceDescriptionBlock
impl InterfaceDescriptionBlock
pub fn read<R: Read>( reader: &mut R, byte_order: Endianness, ) -> Result<Self, PcapNgParseError>
Trait Implementations§
Source§impl Block for InterfaceDescriptionBlock
impl Block for InterfaceDescriptionBlock
Source§fn block_id_le() -> [u8; 4]
fn block_id_le() -> [u8; 4]
Returns the block ID in little-endian format
Source§fn block_id_be() -> [u8; 4]
fn block_id_be() -> [u8; 4]
Returns the block ID in big-endian format
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 InterfaceDescriptionBlock
impl Clone for InterfaceDescriptionBlock
Source§fn clone(&self) -> InterfaceDescriptionBlock
fn clone(&self) -> InterfaceDescriptionBlock
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 InterfaceDescriptionBlock
impl Debug for InterfaceDescriptionBlock
impl Eq for InterfaceDescriptionBlock
impl StructuralPartialEq for InterfaceDescriptionBlock
Auto Trait Implementations§
impl Freeze for InterfaceDescriptionBlock
impl RefUnwindSafe for InterfaceDescriptionBlock
impl Send for InterfaceDescriptionBlock
impl Sync for InterfaceDescriptionBlock
impl Unpin for InterfaceDescriptionBlock
impl UnwindSafe for InterfaceDescriptionBlock
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