[][src]Struct mrt_rs::BGP_MESSAGE

pub struct BGP_MESSAGE {
    pub peer_as: u16,
    pub peer_ip: Ipv4Addr,
    pub local_as: u16,
    pub local_ip: Ipv4Addr,
    pub message: Vec<u8>,
}

Represents the BGP_UPDATE, BGP_OPEN, BGP_NOTIFY and BGP_KEEPALIVE subtypes.

Fields

peer_as: u16

The peer ASN from which the BGP message has been received.

peer_ip: Ipv4Addr

The peer IPv4 address from which the BGP message has been received.

local_as: u16

The ASN of the AS that received this BGP message.

local_ip: Ipv4Addr

The IPv4 of the AS that received this BGP message.

message: Vec<u8>

The message that has been received.

Trait Implementations

impl Debug for BGP_MESSAGE[src]

Auto Trait Implementations

impl Send for BGP_MESSAGE

impl Sync for BGP_MESSAGE

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]