[−][src]Struct smoltcp::wire::Ipv6FragmentHeader
A read/write wrapper around an IPv6 Fragment Header.
Methods
impl<T: AsRef<[u8]>> Header<T>
[src]
pub fn new_unchecked(buffer: T) -> Header<T>
[src]
Create a raw octet buffer with an IPv6 Fragment Header structure.
pub fn new_checked(buffer: T) -> Result<Header<T>>
[src]
Shorthand for a combination of new_unchecked and check_len.
pub fn check_len(&self) -> Result<()>
[src]
Ensure that no accessor method will panic if called.
Returns Err(Error::Truncated)
if the buffer is too short.
pub fn into_inner(self) -> T
[src]
Consume the header, returning the underlying buffer.
pub fn next_header(&self) -> Protocol
[src]
Return the next header field.
pub fn frag_offset(&self) -> u16
[src]
Return the fragment offset field.
pub fn more_frags(&self) -> bool
[src]
Return more fragment flag field.
pub fn ident(&self) -> u32
[src]
Return the fragment identification value field.
impl<T: AsRef<[u8]> + AsMut<[u8]>> Header<T>
[src]
pub fn set_next_header(&mut self, value: Protocol)
[src]
Set the next header field.
pub fn clear_reserved(&mut self)
[src]
Set reserved fields.
Set 8-bit reserved field after the next header field. Set 2-bit reserved field between fragment offset and more fragments.
pub fn set_frag_offset(&mut self, value: u16)
[src]
Set the fragment offset field.
pub fn set_more_frags(&mut self, value: bool)
[src]
Set the more fragments flag field.
pub fn set_ident(&mut self, value: u32)
[src]
Set the fragmentation identification field.
Trait Implementations
impl<T: Debug + AsRef<[u8]>> Debug for Header<T>
[src]
impl<'a, T: AsRef<[u8]> + ?Sized> Display for Header<&'a T>
[src]
impl<T: PartialEq + AsRef<[u8]>> PartialEq<Header<T>> for Header<T>
[src]
impl<T: AsRef<[u8]>> StructuralPartialEq for Header<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Header<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Header<T> where
T: Send,
T: Send,
impl<T> Sync for Header<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Header<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Header<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,