#[non_exhaustive]pub enum Message {
PositionReport(PositionReport),
StaticAndVoyageData(StaticAndVoyageData),
StaticDataReport(StaticDataReport),
AidToNavigation(AidToNavigation),
Unsupported {
kind: u8,
},
}Expand description
Decoded AIS message.
#[non_exhaustive]; match with a wildcard arm.
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.
PositionReport(PositionReport)
Position report: messages 1, 2, 3 (class A), 18, 19 (class B).
StaticAndVoyageData(StaticAndVoyageData)
Class A static and voyage data: message 5.
StaticDataReport(StaticDataReport)
Class B static data: message 24, part A or B.
Aid to navigation: message 21.
Unsupported
Well-formed message of an unsupported type, for counting or logging.
Implementations§
Trait Implementations§
impl Copy for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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