pub enum OrfType {
AddressPrefix,
AddressPrefixLegacy,
Unknown(u8),
}Expand description
ORF-Type (RFC 5291 §5 / RFC 5292). Unknown types are preserved so the codec round-trips forward-defined types losslessly.
Variants§
AddressPrefix
Address-Prefix ORF-Type 64 (RFC 5292) — the standard value.
AddressPrefixLegacy
Legacy pre-standard Address-Prefix ORF-Type 128 (Cisco).
Unknown(u8)
Any other ORF-Type value, preserved verbatim.
Implementations§
Trait Implementations§
impl Copy for OrfType
impl Eq for OrfType
impl StructuralPartialEq for OrfType
Auto Trait Implementations§
impl Freeze for OrfType
impl RefUnwindSafe for OrfType
impl Send for OrfType
impl Sync for OrfType
impl Unpin for OrfType
impl UnsafeUnpin for OrfType
impl UnwindSafe for OrfType
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