Struct bgp_models::network::NetworkPrefix
source · pub struct NetworkPrefix {
pub prefix: IpNet,
pub path_id: u32,
}Expand description
A representation of a IP prefix with optional path ID.
Fields§
§prefix: IpNet§path_id: u32Implementations§
source§impl NetworkPrefix
impl NetworkPrefix
pub fn new(prefix: IpNet, path_id: u32) -> NetworkPrefix
Trait Implementations§
source§impl Clone for NetworkPrefix
impl Clone for NetworkPrefix
source§fn clone(&self) -> NetworkPrefix
fn clone(&self) -> NetworkPrefix
Returns a copy 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 Debug for NetworkPrefix
impl Debug for NetworkPrefix
source§impl Display for NetworkPrefix
impl Display for NetworkPrefix
source§impl FromStr for NetworkPrefix
impl FromStr for NetworkPrefix
source§impl PartialEq<NetworkPrefix> for NetworkPrefix
impl PartialEq<NetworkPrefix> for NetworkPrefix
source§fn eq(&self, other: &NetworkPrefix) -> bool
fn eq(&self, other: &NetworkPrefix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.