Struct etherparse::IpAuthenticationHeaderSlice [−][src]
pub struct IpAuthenticationHeaderSlice<'a> { /* fields omitted */ }
Expand description
A slice containing an IP Authentication Header (rfc4302)
Implementations
Creates a ip authentication header slice from a slice.
Creates a ip authentication header slice from a slice (assumes slice size & content was validated before).
Safety
This method assumes that the slice was previously validated to contain
a valid authentification header. This means the slice length must at
least be at least 8 and (slice[1] + 2)*4
. The data that the
slice points must also be valid (meaning no nullptr or alike allowed).
If these precondtions are not fullfilled the behavior of this function and the methods of the return IpAuthenticationHeaderSlice will be undefined.
Returns the slice containing the authentification header.
This unsigned 32-bit field contains a counter value that increases by one for each packet sent.
Return a slice with the raw integrity check value
Decode some of the fields and copy the results to a Ipv6ExtensionHeader struct together with a slice pointing to the non decoded parts.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for IpAuthenticationHeaderSlice<'a>
impl<'a> Send for IpAuthenticationHeaderSlice<'a>
impl<'a> Sync for IpAuthenticationHeaderSlice<'a>
impl<'a> Unpin for IpAuthenticationHeaderSlice<'a>
impl<'a> UnwindSafe for IpAuthenticationHeaderSlice<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more