pub enum BgpNeighborAddr {
Ip(IpAddr),
PeerGroup(String),
}Expand description
BGP neighbor address — either an IP or a peer-group name.
Variants§
Trait Implementations§
Source§impl Clone for BgpNeighborAddr
impl Clone for BgpNeighborAddr
Source§fn clone(&self) -> BgpNeighborAddr
fn clone(&self) -> BgpNeighborAddr
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 BgpNeighborAddr
impl Debug for BgpNeighborAddr
Source§impl<'de> Deserialize<'de> for BgpNeighborAddr
impl<'de> Deserialize<'de> for BgpNeighborAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpNeighborAddr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BgpNeighborAddr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BgpNeighborAddr
impl Display for BgpNeighborAddr
Source§impl PartialEq for BgpNeighborAddr
impl PartialEq for BgpNeighborAddr
Source§fn eq(&self, other: &BgpNeighborAddr) -> bool
fn eq(&self, other: &BgpNeighborAddr) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BgpNeighborAddr
impl Serialize for BgpNeighborAddr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BgpNeighborAddr
Auto Trait Implementations§
impl Freeze for BgpNeighborAddr
impl RefUnwindSafe for BgpNeighborAddr
impl Send for BgpNeighborAddr
impl Sync for BgpNeighborAddr
impl Unpin for BgpNeighborAddr
impl UnsafeUnpin for BgpNeighborAddr
impl UnwindSafe for BgpNeighborAddr
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