[][src]Struct bgpdump::records::ospf::OSPFv3

pub struct OSPFv3 {
    pub remote: IpAddr,
    pub local: IpAddr,
    pub message: Vec<u8>,
}

The OSPFv3 struct represents the data contained in an MRT record type of OSPFv3 and OSPFv3_ET.

Fields

remote: IpAddr

The IP address of the router from which this message was received.

local: IpAddr

The IP address of the interface at which this message was received.

message: Vec<u8>

The message that has been received.

Methods

impl OSPFv3[src]

pub fn parse(header: &Header, stream: &mut dyn Read) -> Result<OSPFv3, Error>[src]

Summary

Used to parse OSPFv3 MRT records.

Panics

This function does not panic.

Errors

Any IO error will be returned while reading from the stream. If an ill-formatted stream or header is provided behavior will be undefined.

Safety

This function does not make use of unsafe code.

Trait Implementations

impl Debug for OSPFv3[src]

Auto Trait Implementations

impl RefUnwindSafe for OSPFv3

impl Send for OSPFv3

impl Sync for OSPFv3

impl Unpin for OSPFv3

impl UnwindSafe for OSPFv3

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.