#[non_exhaustive]pub struct BgpRouteNetworkLayerReachabilityInformation {
pub path_id: Option<u32>,
pub prefix: Option<String>,
/* private fields */
}Available on crate feature
routers only.Expand description
Network Layer Reachability Information (NLRI) for a route.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path_id: Option<u32>If the BGP session supports multiple paths (RFC 7911), the path identifier for this route.
prefix: Option<String>Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
Implementations§
Source§impl BgpRouteNetworkLayerReachabilityInformation
impl BgpRouteNetworkLayerReachabilityInformation
pub fn new() -> Self
Sourcepub fn set_path_id<T>(self, v: T) -> Self
pub fn set_path_id<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_path_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_path_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_prefix<T>(self, v: T) -> Self
pub fn set_prefix<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_prefix<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_prefix<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for BgpRouteNetworkLayerReachabilityInformation
impl Clone for BgpRouteNetworkLayerReachabilityInformation
Source§fn clone(&self) -> BgpRouteNetworkLayerReachabilityInformation
fn clone(&self) -> BgpRouteNetworkLayerReachabilityInformation
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 moreSource§impl Default for BgpRouteNetworkLayerReachabilityInformation
impl Default for BgpRouteNetworkLayerReachabilityInformation
Source§fn default() -> BgpRouteNetworkLayerReachabilityInformation
fn default() -> BgpRouteNetworkLayerReachabilityInformation
Returns the “default value” for a type. Read more
Source§impl PartialEq for BgpRouteNetworkLayerReachabilityInformation
impl PartialEq for BgpRouteNetworkLayerReachabilityInformation
Source§fn eq(&self, other: &BgpRouteNetworkLayerReachabilityInformation) -> bool
fn eq(&self, other: &BgpRouteNetworkLayerReachabilityInformation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BgpRouteNetworkLayerReachabilityInformation
Auto Trait Implementations§
impl Freeze for BgpRouteNetworkLayerReachabilityInformation
impl RefUnwindSafe for BgpRouteNetworkLayerReachabilityInformation
impl Send for BgpRouteNetworkLayerReachabilityInformation
impl Sync for BgpRouteNetworkLayerReachabilityInformation
impl Unpin for BgpRouteNetworkLayerReachabilityInformation
impl UnwindSafe for BgpRouteNetworkLayerReachabilityInformation
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