[][src]Struct abbegm::msg::EgmHeader

pub struct EgmHeader {
    pub seqno: Option<u32>,
    pub tm: Option<u32>,
    pub mtype: Option<i32>,
}

Fields

seqno: Option<u32>

sequence number (to be able to find lost messages)

tm: Option<u32>

controller send time stamp in ms

mtype: Option<i32>

Implementations

impl EgmHeader[src]

pub fn seqno(&self) -> u32[src]

Returns the value of seqno, or the default value if seqno is unset.

pub fn tm(&self) -> u32[src]

Returns the value of tm, or the default value if tm is unset.

pub fn mtype(&self) -> MessageType[src]

Returns the enum value of mtype, or the default if the field is unset or set to an invalid enum value.

pub fn set_mtype(&mut self, value: MessageType)[src]

Sets mtype to the provided enum value.

impl EgmHeader[src]

pub fn new(seqno: u32, timestamp_ms: u32, kind: MessageType) -> Self[src]

pub fn command(seqno: u32, timestamp_ms: u32) -> Self[src]

Make a new command header.

pub fn data(seqno: u32, timestamp_ms: u32) -> Self[src]

Make a new data header.

pub fn correction(seqno: u32, timestamp_ms: u32) -> Self[src]

Make a new correction header.

pub fn path_correction(seqno: u32, timestamp_ms: u32) -> Self[src]

Make a new path correction header.

Trait Implementations

impl Clone for EgmHeader[src]

impl Debug for EgmHeader[src]

impl Default for EgmHeader[src]

impl Message for EgmHeader[src]

impl PartialEq<EgmHeader> for EgmHeader[src]

impl StructuralPartialEq for EgmHeader[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,