Struct nmea_parser::ais::VesselDynamicData
source · [−]pub struct VesselDynamicData {Show 26 fields
pub own_vessel: bool,
pub station: Station,
pub ais_type: AisClass,
pub mmsi: u32,
pub nav_status: NavigationStatus,
pub rot: Option<f64>,
pub rot_direction: Option<RotDirection>,
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 current_gnss_position: Option<bool>,
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: Option<u32>,
}
Expand description
Types 1, 2, 3 and 18: Position Report Class A, and Long Range AIS Broadcast message
Fields
own_vessel: bool
True if the data is about own vessel, false if about other.
station: Station
AIS station type.
ais_type: AisClass
Class A or Class B
mmsi: u32
User ID (30 bits)
Navigation status
rot: Option<f64>
Accurate ROT_sensor (±0..708°/min) if available.
rot_direction: Option<RotDirection>
ROT direction when turn is more than 5°/30s.
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)
current_gnss_position: Option<bool>
GNSS position status (Type 27): true = current GNSS position false = not GNSS position
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 unit flag: false = Class B SOTDMA unit, true = Class B “CS” unit.
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: Option<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
sourceimpl Clone for VesselDynamicData
impl Clone for VesselDynamicData
sourcefn clone(&self) -> VesselDynamicData
fn clone(&self) -> VesselDynamicData
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for VesselDynamicData
impl Debug for VesselDynamicData
sourceimpl Default for VesselDynamicData
impl Default for VesselDynamicData
sourcefn default() -> VesselDynamicData
fn default() -> VesselDynamicData
sourceimpl LatLon for VesselDynamicData
impl LatLon for VesselDynamicData
sourceimpl PartialEq<VesselDynamicData> for VesselDynamicData
impl PartialEq<VesselDynamicData> for VesselDynamicData
sourcefn eq(&self, other: &VesselDynamicData) -> bool
fn eq(&self, other: &VesselDynamicData) -> bool
impl StructuralPartialEq for VesselDynamicData
Auto Trait Implementations
impl RefUnwindSafe for VesselDynamicData
impl Send for VesselDynamicData
impl Sync for VesselDynamicData
impl Unpin for VesselDynamicData
impl UnwindSafe for VesselDynamicData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> FmtForward for T
impl<T> FmtForward for T
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read morefn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read morefn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
self
, then passes self.as_ref()
into the pipe function.fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
self
, then passes self.deref()
into the pipe function.impl<T> Tap for T
impl<T> Tap for T
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
Borrow<B>
of a value. Read morefn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
BorrowMut<B>
of a value. Read morefn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
AsRef<R>
view of a value. Read morefn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
AsMut<R>
view of a value. Read morefn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
Deref::Target
of a value. Read morefn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Deref::Target
of a value. Read morefn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds. Read morefn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
.tap_borrow()
only in debug builds, and is erased in release
builds. Read morefn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
.tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read morefn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
.tap_ref()
only in debug builds, and is erased in release
builds. Read morefn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
.tap_ref_mut()
only in debug builds, and is erased in release
builds. Read more