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§
Source§impl Clone for VesselDynamicData
impl Clone for VesselDynamicData
Source§fn clone(&self) -> VesselDynamicData
fn clone(&self) -> VesselDynamicData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VesselDynamicData
impl Debug for VesselDynamicData
Source§impl Default for VesselDynamicData
impl Default for VesselDynamicData
Source§fn default() -> VesselDynamicData
fn default() -> VesselDynamicData
Source§impl LatLon for VesselDynamicData
impl LatLon for VesselDynamicData
Source§impl PartialEq for VesselDynamicData
impl PartialEq for VesselDynamicData
impl StructuralPartialEq for VesselDynamicData
Auto Trait Implementations§
impl Freeze for VesselDynamicData
impl RefUnwindSafe for VesselDynamicData
impl Send for VesselDynamicData
impl Sync for VesselDynamicData
impl Unpin for VesselDynamicData
impl UnwindSafe for VesselDynamicData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§fn 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 moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn 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.Source§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.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.