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 for UnknownBlock<'a>
impl<'a> PartialEq for UnknownBlock<'a>
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
enumerationimpl<'a> Eq for UnknownBlock<'a>
impl<'a> StructuralPartialEq for UnknownBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnknownBlock<'a>
impl<'a> RefUnwindSafe for UnknownBlock<'a>
impl<'a> Send for UnknownBlock<'a>
impl<'a> Sync for UnknownBlock<'a>
impl<'a> Unpin for UnknownBlock<'a>
impl<'a> UnwindSafe for UnknownBlock<'a>
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