#[repr(C)]pub struct SectionHeaderBlock {
pub block_type: U32,
pub block_total_length: U32,
pub byte_order_magic: U32,
pub major_version: U16,
pub minor_version: U16,
pub section_length: U64,
pub block_total_length2: U32,
}Expand description
A Section Header Block structure for serialization as defined in pcapng RFC Section 4.1.
Fields§
§block_type: U32Block type code.
block_total_length: U32Total length of the block.
byte_order_magic: U32Byte order magic.
major_version: U16Major version.
minor_version: U16Minor version.
section_length: U64Section length.
block_total_length2: U32Total length of the block (repeated).
Implementations§
Source§impl SectionHeaderBlock
impl SectionHeaderBlock
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Section Header Block with default values as defined in pcapng RFC Section 4.1.
Trait Implementations§
Source§impl IntoBytes for SectionHeaderBlock
impl IntoBytes for SectionHeaderBlock
impl Immutable for SectionHeaderBlock
Auto Trait Implementations§
impl Freeze for SectionHeaderBlock
impl RefUnwindSafe for SectionHeaderBlock
impl Send for SectionHeaderBlock
impl Sync for SectionHeaderBlock
impl Unpin for SectionHeaderBlock
impl UnsafeUnpin for SectionHeaderBlock
impl UnwindSafe for SectionHeaderBlock
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more