Struct mavlink::python_array_test::AIS_VESSEL_DATA
source · pub struct AIS_VESSEL_DATA {Show 17 fields
pub MMSI: u32,
pub lat: i32,
pub lon: i32,
pub COG: u16,
pub heading: u16,
pub velocity: u16,
pub dimension_bow: u16,
pub dimension_stern: u16,
pub tslc: u16,
pub flags: AisFlags,
pub turn_rate: i8,
pub navigational_status: AisNavStatus,
pub mavtype: AisType,
pub dimension_port: u8,
pub dimension_starboard: u8,
pub callsign: [u8; 7],
pub name: [u8; 20],
}
Available on crate feature
python_array_test
only.Expand description
id: 301 The location and information of an AIS vessel.
Fields§
§MMSI: u32
Mobile Marine Service Identifier, 9 decimal digits.
lat: i32
Latitude.
lon: i32
Longitude.
COG: u16
Course over ground.
heading: u16
True heading.
velocity: u16
Speed over ground.
dimension_bow: u16
Distance from lat/lon location to bow.
dimension_stern: u16
Distance from lat/lon location to stern.
tslc: u16
Time since last communication in seconds.
flags: AisFlags
Bitmask to indicate various statuses including valid data fields.
turn_rate: i8
Turn rate.
Navigational status.
mavtype: AisType
Type of vessels.
dimension_port: u8
Distance from lat/lon location to port side.
dimension_starboard: u8
Distance from lat/lon location to starboard side.
callsign: [u8; 7]
The vessel callsign.
name: [u8; 20]
The vessel name.
Implementations§
source§impl AIS_VESSEL_DATA
impl AIS_VESSEL_DATA
pub const ENCODED_LEN: usize = 58usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for AIS_VESSEL_DATA
impl Clone for AIS_VESSEL_DATA
source§fn clone(&self) -> AIS_VESSEL_DATA
fn clone(&self) -> AIS_VESSEL_DATA
Returns a copy 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 AIS_VESSEL_DATA
impl Debug for AIS_VESSEL_DATA
source§impl Default for AIS_VESSEL_DATA
impl Default for AIS_VESSEL_DATA
source§impl<'de> Deserialize<'de> for AIS_VESSEL_DATA
impl<'de> Deserialize<'de> for AIS_VESSEL_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for AIS_VESSEL_DATA
impl MessageData for AIS_VESSEL_DATA
const ID: u32 = 301u32
const NAME: &'static str = "AIS_VESSEL"
const EXTRA_CRC: u8 = 243u8
const ENCODED_LEN: usize = 58usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for AIS_VESSEL_DATA
impl PartialEq for AIS_VESSEL_DATA
source§impl Serialize for AIS_VESSEL_DATA
impl Serialize for AIS_VESSEL_DATA
impl StructuralPartialEq for AIS_VESSEL_DATA
Auto Trait Implementations§
impl Freeze for AIS_VESSEL_DATA
impl RefUnwindSafe for AIS_VESSEL_DATA
impl Send for AIS_VESSEL_DATA
impl Sync for AIS_VESSEL_DATA
impl Unpin for AIS_VESSEL_DATA
impl UnwindSafe for AIS_VESSEL_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)