#[non_exhaustive]pub enum AisMessage {
Position(PositionReport),
StaticVoyage(StaticVoyageData),
StaticReport(StaticDataReport),
Unknown {
msg_type: u8,
},
}Expand description
Unified AIS message enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Position(PositionReport)
Types 1, 2, 3 (Class A), 18 (Class B), 19 (Class B+) position reports.
StaticVoyage(StaticVoyageData)
Type 5: static and voyage related data (Class A).
StaticReport(StaticDataReport)
Type 24: static data report (Class B), Part A or Part B.
Unknown
Unsupported message type.
Trait Implementations§
Source§impl Clone for AisMessage
impl Clone for AisMessage
Source§fn clone(&self) -> AisMessage
fn clone(&self) -> AisMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AisMessage
impl Debug for AisMessage
Source§impl PartialEq for AisMessage
impl PartialEq for AisMessage
impl StructuralPartialEq for AisMessage
Auto Trait Implementations§
impl Freeze for AisMessage
impl RefUnwindSafe for AisMessage
impl Send for AisMessage
impl Sync for AisMessage
impl Unpin for AisMessage
impl UnsafeUnpin for AisMessage
impl UnwindSafe for AisMessage
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
Mutably borrows from an owned value. Read more