#[non_exhaustive]pub enum StaticDataReport {
PartA {
mmsi: u32,
vessel_name: String,
},
PartB {
mmsi: u32,
callsign: String,
ship_type: u8,
},
}Expand description
AIS Static Data Report — Type 24 (Class B).
Type 24 comes in two parts:
- Part A: vessel name
- Part B: callsign + ship type
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.
Implementations§
Trait Implementations§
Source§impl Clone for StaticDataReport
impl Clone for StaticDataReport
Source§fn clone(&self) -> StaticDataReport
fn clone(&self) -> StaticDataReport
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 StaticDataReport
impl Debug for StaticDataReport
Source§impl PartialEq for StaticDataReport
impl PartialEq for StaticDataReport
impl StructuralPartialEq for StaticDataReport
Auto Trait Implementations§
impl Freeze for StaticDataReport
impl RefUnwindSafe for StaticDataReport
impl Send for StaticDataReport
impl Sync for StaticDataReport
impl Unpin for StaticDataReport
impl UnsafeUnpin for StaticDataReport
impl UnwindSafe for StaticDataReport
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