#[repr(u8)]pub enum BgpRole {
Provider = 0,
RouteServer = 1,
RouteServerClient = 2,
Customer = 3,
Peer = 4,
}Expand description
BGP Role (RFC 9234 §4) — the speaker’s role on this eBGP session.
The numeric encoding is the 1-byte capability value carried in the Role capability (code 9). The compatibility matrix (Provider↔Customer, RS↔RS-Client, Peer↔Peer) is enforced by the FSM negotiator, not by this codec.
Variants§
Provider = 0
Speaker is a transit Provider for the peer.
RouteServer = 1
Speaker is a Route Server (RFC 7947).
RouteServerClient = 2
Speaker is a client of a Route Server.
Customer = 3
Speaker is a Customer of the peer.
Peer = 4
Speaker is a lateral Peer of the peer.
Implementations§
Trait Implementations§
impl Copy for BgpRole
impl Eq for BgpRole
impl StructuralPartialEq for BgpRole
Auto Trait Implementations§
impl Freeze for BgpRole
impl RefUnwindSafe for BgpRole
impl Send for BgpRole
impl Sync for BgpRole
impl Unpin for BgpRole
impl UnsafeUnpin for BgpRole
impl UnwindSafe for BgpRole
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