pub struct UnknownBlock<'a> {
pub type_: u32,
pub length: u32,
pub value: Cow<'a, [u8]>,
}
Expand description
Unknown block
Fields§
§type_: u32
Block type
length: u32
Block length
value: Cow<'a, [u8]>
Block value
Implementations§
source§impl<'a> UnknownBlock<'a>
impl<'a> UnknownBlock<'a>
sourcepub fn into_owned(self) -> UnknownBlock<'static>
pub fn into_owned(self) -> UnknownBlock<'static>
Returns a version of self
with all fields converted to owning versions.
source§impl<'a> UnknownBlock<'a>
impl<'a> UnknownBlock<'a>
Trait Implementations§
source§impl<'a> Clone for UnknownBlock<'a>
impl<'a> Clone for UnknownBlock<'a>
source§fn clone(&self) -> UnknownBlock<'a>
fn clone(&self) -> UnknownBlock<'a>
Returns a copy 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<'a> Debug for UnknownBlock<'a>
impl<'a> Debug for UnknownBlock<'a>
source§impl<'a> PartialEq<UnknownBlock<'a>> for UnknownBlock<'a>
impl<'a> PartialEq<UnknownBlock<'a>> for UnknownBlock<'a>
source§fn eq(&self, other: &UnknownBlock<'a>) -> bool
fn eq(&self, other: &UnknownBlock<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PcapNgBlock<'a> for UnknownBlock<'a>
impl<'a> PcapNgBlock<'a> for UnknownBlock<'a>
source§fn from_slice<B: ByteOrder>(
_slice: &'a [u8]
) -> Result<(&[u8], Self), PcapError>where
Self: Sized,
fn from_slice<B: ByteOrder>(
_slice: &'a [u8]
) -> Result<(&[u8], Self), PcapError>where
Self: Sized,
Parse a new block from a slice
source§fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
Write the content of a block into a writer
source§fn into_block(self) -> Block<'a>
fn into_block(self) -> Block<'a>
Convert a block into the
Block
enumeration