Struct etherparse::Ipv6RoutingExtensions
source · pub struct Ipv6RoutingExtensions {
pub routing: Ipv6RawExtHeader,
pub final_destination_options: Option<Ipv6RawExtHeader>,
}
Expand description
In case a route header is present it is also possible to attach a “final destination” header.
Fields§
§routing: Ipv6RawExtHeader
§final_destination_options: Option<Ipv6RawExtHeader>
Implementations§
source§impl Ipv6RoutingExtensions
impl Ipv6RoutingExtensions
sourcepub const MIN_LEN: usize = 2_048usize
pub const MIN_LEN: usize = 2_048usize
Minimum length required for routing extension headers in bytes/octets.
sourcepub const MAX_LEN: usize = 4_096usize
pub const MAX_LEN: usize = 4_096usize
Maximum summed up length of all extension headers in bytes/octets.
sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Return the length of the headers in bytes.
Trait Implementations§
source§impl Clone for Ipv6RoutingExtensions
impl Clone for Ipv6RoutingExtensions
source§fn clone(&self) -> Ipv6RoutingExtensions
fn clone(&self) -> Ipv6RoutingExtensions
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 Debug for Ipv6RoutingExtensions
impl Debug for Ipv6RoutingExtensions
source§impl PartialEq for Ipv6RoutingExtensions
impl PartialEq for Ipv6RoutingExtensions
source§fn eq(&self, other: &Ipv6RoutingExtensions) -> bool
fn eq(&self, other: &Ipv6RoutingExtensions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Ipv6RoutingExtensions
impl StructuralPartialEq for Ipv6RoutingExtensions
Auto Trait Implementations§
impl Freeze for Ipv6RoutingExtensions
impl RefUnwindSafe for Ipv6RoutingExtensions
impl Send for Ipv6RoutingExtensions
impl Sync for Ipv6RoutingExtensions
impl Unpin for Ipv6RoutingExtensions
impl UnwindSafe for Ipv6RoutingExtensions
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