[][src]Struct bgpdump::Header

pub struct Header {
    pub timestamp: u32,
    pub extended: u32,
    pub record_type: u16,
    pub sub_type: u16,
    pub length: u32,

Represents the MRT header accompanying every MRT record.


timestamp: u32

The time at which this message was generated. Represented in UNIX time.

extended: u32

Microsecond resolution of the time on which this message was generated. Zero if not present.

record_type: u16

The main type of the MRT record.

sub_type: u16

The sub-type of the MRT record.

length: u32

The length in bytes of the MRT record excluding the MRT header.

Trait Implementations

impl Debug for Header[src]

Auto Trait Implementations

impl RefUnwindSafe for Header

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.