pub enum OpenCapability {
MultiProtocol((AFI, SAFI)),
RouteRefresh,
OutboundRouteFiltering(HashSet<(AFI, SAFI, u8, AddPathDirection)>),
FourByteASN(u32),
AddPath(Vec<(AFI, SAFI, AddPathDirection)>),
Unknown {
cap_code: u8,
cap_length: u8,
value: Vec<u8>,
},
}
Expand description
Represents a known capability held in an OpenParameter
Variants§
MultiProtocol((AFI, SAFI))
1 - Indicates the speaker is willing to exchange multiple protocols over this session.
RouteRefresh
2 - Indicates the speaker supports route refresh.
OutboundRouteFiltering(HashSet<(AFI, SAFI, u8, AddPathDirection)>)
3 - Support for Outbound Route Filtering of specified AFI/SAFIs
FourByteASN(u32)
65 - Indicates the speaker supports 4 byte ASNs and includes the ASN of the speaker.
AddPath(Vec<(AFI, SAFI, AddPathDirection)>)
69 - Indicates the speaker supports sending/receiving multiple paths for a given prefix.
Unknown
Unknown (or unsupported) capability
Trait Implementations§
Source§impl Clone for OpenCapability
impl Clone for OpenCapability
Source§fn clone(&self) -> OpenCapability
fn clone(&self) -> OpenCapability
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 moreAuto Trait Implementations§
impl Freeze for OpenCapability
impl RefUnwindSafe for OpenCapability
impl Send for OpenCapability
impl Sync for OpenCapability
impl Unpin for OpenCapability
impl UnwindSafe for OpenCapability
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