[][src]Struct nmea_parser::VesselDynamicData

pub struct VesselDynamicData {
    pub own_vessel: bool,
    pub station: Station,
    pub ais_type: AisType,
    pub mmsi: u32,
    pub nav_status: NavigationStatus,
    pub rot: Option<f64>,
    pub rot_direction: Option<i8>,
    pub sog_knots: Option<f64>,
    pub high_position_accuracy: bool,
    pub latitude: Option<f64>,
    pub longitude: Option<f64>,
    pub cog: Option<f64>,
    pub heading_true: Option<f64>,
    pub timestamp_seconds: u8,
    pub positioning_system_meta: Option<PositioningSystemMeta>,
    pub special_manoeuvre: Option<bool>,
    pub raim_flag: bool,
    pub class_b_unit_flag: Option<bool>,
    pub class_b_display: Option<bool>,
    pub class_b_dsc: Option<bool>,
    pub class_b_band_flag: Option<bool>,
    pub class_b_msg22_flag: Option<bool>,
    pub class_b_mode_flag: Option<bool>,
    pub class_b_css_flag: Option<bool>,
    pub radio_status: u32,
}

AIVDM types 1, 2, 3 and 18

Fields

own_vessel: bool

True if the data is about own vessel, false if about other.

station: Station

AIS station type.

ais_type: AisType

Class A or Class B

mmsi: u32

User ID (30 bits)

nav_status: NavigationStatus

Navigation status

rot: Option<f64>

Accurate ROT_sensor (±0..708°/min) if available.

rot_direction: Option<i8>

ROT direction when turn is more than 5°/30s. Left = -1, center = 0, right = 1.

sog_knots: Option<f64>

Speed over ground in knots

high_position_accuracy: bool

Position accuracy: true = high (<= 10 m), false = low (> 10 m)

latitude: Option<f64>

Latitude

longitude: Option<f64>

Longitude

cog: Option<f64>

Course over ground

heading_true: Option<f64>

True heading (0-359)

timestamp_seconds: u8

Derived from UTC second (6 bits)

positioning_system_meta: Option<PositioningSystemMeta>

Positioning system metadata (included in seconds in UTC timestamp)

special_manoeuvre: Option<bool>

Special manoeuvre indicator. false = not engaged in special manoeuvre, true = engaged in special manouvre.

raim_flag: bool

Riverine And Inland Navigation systems blue sign: RAIM (Receiver autonomous integrity monitoring) flag of electronic position fixing device; false = RAIM not in use = default; true = RAIM in use

class_b_unit_flag: Option<bool>class_b_display: Option<bool>

Class B display: false = No display available; not capable of displaying Message 12 and 14 true = Equipped with integrated display displaying Message 12 and 14

class_b_dsc: Option<bool>

Class B DSC: false = Not equipped with DSC function true = Equipped with DSC function (dedicated or time-shared

class_b_band_flag: Option<bool>

Class B band flag: false = Capable of operating over the upper 525 kHz band of the marine band true = Capable of operating over the whole marine band (irrelevant if “Class B Message 22 flag” is 0)

class_b_msg22_flag: Option<bool>

Class B Message 22 flag: false = No frequency management via Message 22 , operating on AIS1, AIS2 only true = Frequency management via Message 22

class_b_mode_flag: Option<bool>

Mode flag: false = Station operating in autonomous and continuous mode = default true = Station operating in assigned mode

class_b_css_flag: Option<bool>

Communication state selector flag false = SOTDMA communication state follows true = ITDMA communication state follows (always “1” for Class-B “CS”)

radio_status: u32

Communication state Diagnostic information for the radio system. https://www.itu.int/dms_pubrec/itu-r/rec/m/R-REC-M.1371-1-200108-S!!PDF-E.pdf

Trait Implementations

impl Clone for VesselDynamicData[src]

impl Debug for VesselDynamicData[src]

impl Default for VesselDynamicData[src]

impl PartialEq<VesselDynamicData> for VesselDynamicData[src]

impl StructuralPartialEq for VesselDynamicData[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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.