pub struct BgpElemRef<'a> {Show 15 fields
pub timestamp: &'a f64,
pub elem_type: &'a ElemType,
pub peer_ip: &'a IpAddr,
pub peer_asn: &'a Asn,
pub prefix: &'a NetworkPrefix,
pub next_hop: &'a Option<IpAddr>,
pub as_path: &'a Option<AsPath>,
pub origin_asns: &'a Option<Vec<Asn>>,
pub origin: &'a Option<Origin>,
pub local_pref: &'a Option<u32>,
pub med: &'a Option<u32>,
pub communities: &'a Option<Vec<MetaCommunity>>,
pub atomic: &'a Option<AtomicAggregate>,
pub aggr_asn: &'a Option<Asn>,
pub aggr_ip: &'a Option<IpAddr>,
}Expand description
Reference version of the BgpElem struct.
Fields§
§timestamp: &'a f64§elem_type: &'a ElemType§peer_ip: &'a IpAddr§peer_asn: &'a Asn§prefix: &'a NetworkPrefix§next_hop: &'a Option<IpAddr>§as_path: &'a Option<AsPath>§origin_asns: &'a Option<Vec<Asn>>§origin: &'a Option<Origin>§local_pref: &'a Option<u32>§med: &'a Option<u32>§communities: &'a Option<Vec<MetaCommunity>>§atomic: &'a Option<AtomicAggregate>§aggr_asn: &'a Option<Asn>§aggr_ip: &'a Option<IpAddr>Trait Implementations§
Source§impl<'a> Clone for BgpElemRef<'a>
impl<'a> Clone for BgpElemRef<'a>
Source§fn clone(&self) -> BgpElemRef<'a>
fn clone(&self) -> BgpElemRef<'a>
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<'a> Debug for BgpElemRef<'a>
impl<'a> Debug for BgpElemRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BgpElemRef<'a>
impl<'a> RefUnwindSafe for BgpElemRef<'a>
impl<'a> Send for BgpElemRef<'a>
impl<'a> Sync for BgpElemRef<'a>
impl<'a> Unpin for BgpElemRef<'a>
impl<'a> UnwindSafe for BgpElemRef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more