pub struct Bgp4MpUpdate {
pub timestamp: f64,
pub peer_ip: IpAddr,
pub peer_asn: Asn,
pub message: BgpUpdateMessage,
}Expand description
A BGP4MP UPDATE message with associated metadata.
This struct wraps a BgpUpdateMessage with the peer information and timestamp
from the MRT record. It’s more efficient than BgpElem when a single UPDATE
contains multiple prefixes, as the attributes are not duplicated.
Fields§
§timestamp: f64The timestamp of the MRT record in floating-point format (seconds since epoch).
peer_ip: IpAddrThe IP address of the BGP peer that sent this update.
peer_asn: AsnThe ASN of the BGP peer that sent this update.
message: BgpUpdateMessageThe BGP UPDATE message containing announcements, withdrawals, and attributes.
Trait Implementations§
Source§impl Clone for Bgp4MpUpdate
impl Clone for Bgp4MpUpdate
Source§fn clone(&self) -> Bgp4MpUpdate
fn clone(&self) -> Bgp4MpUpdate
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 Debug for Bgp4MpUpdate
impl Debug for Bgp4MpUpdate
Source§impl PartialEq for Bgp4MpUpdate
impl PartialEq for Bgp4MpUpdate
impl StructuralPartialEq for Bgp4MpUpdate
Auto Trait Implementations§
impl Freeze for Bgp4MpUpdate
impl RefUnwindSafe for Bgp4MpUpdate
impl Send for Bgp4MpUpdate
impl Sync for Bgp4MpUpdate
impl Unpin for Bgp4MpUpdate
impl UnwindSafe for Bgp4MpUpdate
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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