pub struct AddressPrefixOrf {
pub action: OrfAction,
pub match_: OrfMatch,
pub sequence: u32,
pub min_len: u8,
pub max_len: u8,
pub prefix: Option<Prefix>,
}Expand description
A single Address-Prefix ORF entry (RFC 5291 §5.1.1 header + RFC 5292 §4).
For OrfAction::RemoveAll, only the action is meaningful — prefix is
None and the length/sequence fields are zero.
Fields§
§action: OrfActionAdd / Remove / Remove-All.
match_: OrfMatchPermit or Deny (ignored for Remove-All).
sequence: u32Ordering key within the ORF list.
min_len: u8Minimum prefix length (0 = unspecified, RFC 5292 §4).
max_len: u8Maximum prefix length (0 = unspecified, RFC 5292 §4).
prefix: Option<Prefix>The filtered prefix (None for Remove-All).
Trait Implementations§
Source§impl Clone for AddressPrefixOrf
impl Clone for AddressPrefixOrf
Source§fn clone(&self) -> AddressPrefixOrf
fn clone(&self) -> AddressPrefixOrf
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressPrefixOrf
Source§impl Debug for AddressPrefixOrf
impl Debug for AddressPrefixOrf
impl Eq for AddressPrefixOrf
Source§impl PartialEq for AddressPrefixOrf
impl PartialEq for AddressPrefixOrf
Source§fn eq(&self, other: &AddressPrefixOrf) -> bool
fn eq(&self, other: &AddressPrefixOrf) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddressPrefixOrf
Auto Trait Implementations§
impl Freeze for AddressPrefixOrf
impl RefUnwindSafe for AddressPrefixOrf
impl Send for AddressPrefixOrf
impl Sync for AddressPrefixOrf
impl Unpin for AddressPrefixOrf
impl UnsafeUnpin for AddressPrefixOrf
impl UnwindSafe for AddressPrefixOrf
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