pub struct UnknownBlock<'a> {
pub type_: u32,
pub length: u32,
pub value: Cow<'a, [u8]>,
}Expand description
Unknown block
Fields§
§type_: u32Block type
length: u32Block 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§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 enumerationimpl<'a> Eq for UnknownBlock<'a>
impl<'a> StructuralEq for UnknownBlock<'a>
impl<'a> StructuralPartialEq for UnknownBlock<'a>
Auto Trait Implementations§
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