pub struct Ipv6PrefixOffset {
pub prefix: Ipv6Prefix,
pub offset: u8,
}Expand description
IPv6 prefix with an additional bit offset for FlowSpec source/destination.
Fields§
§prefix: Ipv6PrefixThe IPv6 prefix.
offset: u8Bit offset within the prefix (RFC 8956 §3.1).
Trait Implementations§
Source§impl Clone for Ipv6PrefixOffset
impl Clone for Ipv6PrefixOffset
Source§fn clone(&self) -> Ipv6PrefixOffset
fn clone(&self) -> Ipv6PrefixOffset
Returns a duplicate 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 Ipv6PrefixOffset
impl Debug for Ipv6PrefixOffset
Source§impl Hash for Ipv6PrefixOffset
impl Hash for Ipv6PrefixOffset
Source§impl Ord for Ipv6PrefixOffset
impl Ord for Ipv6PrefixOffset
Source§fn cmp(&self, other: &Ipv6PrefixOffset) -> Ordering
fn cmp(&self, other: &Ipv6PrefixOffset) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Ipv6PrefixOffset
impl PartialEq for Ipv6PrefixOffset
Source§impl PartialOrd for Ipv6PrefixOffset
impl PartialOrd for Ipv6PrefixOffset
impl Eq for Ipv6PrefixOffset
impl StructuralPartialEq for Ipv6PrefixOffset
Auto Trait Implementations§
impl Freeze for Ipv6PrefixOffset
impl RefUnwindSafe for Ipv6PrefixOffset
impl Send for Ipv6PrefixOffset
impl Sync for Ipv6PrefixOffset
impl Unpin for Ipv6PrefixOffset
impl UnsafeUnpin for Ipv6PrefixOffset
impl UnwindSafe for Ipv6PrefixOffset
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