#[non_exhaustive]pub enum AisMessage {
Show 15 variants
Position(PositionReport),
BaseStation(BaseStationReport),
StaticVoyage(StaticVoyageData),
BinaryAddressed(BinaryAddressed),
BinaryAck(BinaryAck),
BinaryBroadcast(BinaryBroadcast),
SarAircraft(SarAircraftReport),
UtcDateResponse(UtcDateResponse),
SafetyAddressed(SafetyAddressed),
Safety(SafetyBroadcast),
Interrogation(Interrogation),
AidToNavigation(AidToNavigation),
StaticReport(StaticDataReport),
LongRangePosition(LongRangePosition),
Unknown {
msg_type: u8,
},
}Expand description
Unified AIS message enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Position(PositionReport)
Types 1, 2, 3 (Class A), 18 (Class B), 19 (Class B+) position reports.
BaseStation(BaseStationReport)
Type 4: UTC time and position from base station (coast guard / port authority).
StaticVoyage(StaticVoyageData)
Type 5: static and voyage related data (Class A).
BinaryAddressed(BinaryAddressed)
Type 6: addressed binary message (application-specific data).
BinaryAck(BinaryAck)
Types 7/13: binary / safety acknowledge.
BinaryBroadcast(BinaryBroadcast)
Type 8: binary broadcast message (application-specific data).
SarAircraft(SarAircraftReport)
Type 9: standard SAR aircraft position report.
UtcDateResponse(UtcDateResponse)
Type 11: UTC/date response (mobile station reply to interrogation).
SafetyAddressed(SafetyAddressed)
Type 12: addressed safety-related message (text to specific MMSI).
Safety(SafetyBroadcast)
Type 14: safety-related broadcast message (text alert from shore/vessel).
Interrogation(Interrogation)
Type 15: interrogation (request data from other vessel).
Type 21: aid-to-navigation report (buoy, beacon, lighthouse).
StaticReport(StaticDataReport)
Type 24: static data report (Class B), Part A or Part B.
LongRangePosition(LongRangePosition)
Type 27: long-range position report (satellite AIS / Class D).
Unknown
Unsupported message type.
Trait Implementations§
Source§impl Clone for AisMessage
impl Clone for AisMessage
Source§fn clone(&self) -> AisMessage
fn clone(&self) -> AisMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more