pub enum OrfEntries {
AddressPrefix(Vec<AddressPrefixOrf>),
Raw(Bytes),
Malformed(Bytes),
}Expand description
Decoded entries of one ORF-Type group inside a ROUTE-REFRESH.
Variants§
AddressPrefix(Vec<AddressPrefixOrf>)
Parsed Address-Prefix entries (ORF-Type 64 or 128).
Raw(Bytes)
Raw bytes for an ORF-Type this codec does not parse, preserved verbatim for lossless round-trip (the caller ignores un-negotiated types).
Malformed(Bytes)
An Address-Prefix group whose entries could not be parsed (undefined
Action, prefix length beyond the family, etc.). Per RFC 5291 §5.2 the
receiver ignores the malformed entries and removes the previously
installed ORF list of that type — it does not tear the session down,
so this is surfaced as data rather than a DecodeError. The raw bytes
are preserved for lossless round-trip.
Trait Implementations§
Source§impl Clone for OrfEntries
impl Clone for OrfEntries
Source§fn clone(&self) -> OrfEntries
fn clone(&self) -> OrfEntries
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 moreSource§impl Debug for OrfEntries
impl Debug for OrfEntries
impl Eq for OrfEntries
Source§impl PartialEq for OrfEntries
impl PartialEq for OrfEntries
Source§fn eq(&self, other: &OrfEntries) -> bool
fn eq(&self, other: &OrfEntries) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrfEntries
Auto Trait Implementations§
impl !Freeze for OrfEntries
impl RefUnwindSafe for OrfEntries
impl Send for OrfEntries
impl Sync for OrfEntries
impl Unpin for OrfEntries
impl UnsafeUnpin for OrfEntries
impl UnwindSafe for OrfEntries
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