Struct mavlink::common::UAVCAN_NODE_STATUS_DATA
source · pub struct UAVCAN_NODE_STATUS_DATA {
pub time_usec: u64,
pub uptime_sec: u32,
pub vendor_specific_status_code: u16,
pub health: UavcanNodeHealth,
pub mode: UavcanNodeMode,
pub sub_mode: u8,
}
Available on crate feature
common
only.Expand description
id: 310 General status information of an UAVCAN node. Please refer to the definition of the UAVCAN message “uavcan.protocol.NodeStatus” for the background information. The UAVCAN specification is available at http://uavcan.org..
Fields§
§time_usec: u64
Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number..
uptime_sec: u32
Time since the start-up of the node..
vendor_specific_status_code: u16
Vendor-specific status information..
health: UavcanNodeHealth
Generalized node health status..
mode: UavcanNodeMode
Generalized operating mode..
sub_mode: u8
Not used currently..
Implementations§
source§impl UAVCAN_NODE_STATUS_DATA
impl UAVCAN_NODE_STATUS_DATA
pub const ENCODED_LEN: usize = 17usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for UAVCAN_NODE_STATUS_DATA
impl Clone for UAVCAN_NODE_STATUS_DATA
source§fn clone(&self) -> UAVCAN_NODE_STATUS_DATA
fn clone(&self) -> UAVCAN_NODE_STATUS_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 UAVCAN_NODE_STATUS_DATA
impl Debug for UAVCAN_NODE_STATUS_DATA
source§impl Default for UAVCAN_NODE_STATUS_DATA
impl Default for UAVCAN_NODE_STATUS_DATA
source§impl<'de> Deserialize<'de> for UAVCAN_NODE_STATUS_DATA
impl<'de> Deserialize<'de> for UAVCAN_NODE_STATUS_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 UAVCAN_NODE_STATUS_DATA
impl MessageData for UAVCAN_NODE_STATUS_DATA
const ID: u32 = 310u32
const NAME: &'static str = "UAVCAN_NODE_STATUS"
const EXTRA_CRC: u8 = 28u8
const ENCODED_LEN: usize = 17usize
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 UAVCAN_NODE_STATUS_DATA
impl PartialEq for UAVCAN_NODE_STATUS_DATA
source§impl Serialize for UAVCAN_NODE_STATUS_DATA
impl Serialize for UAVCAN_NODE_STATUS_DATA
impl StructuralPartialEq for UAVCAN_NODE_STATUS_DATA
Auto Trait Implementations§
impl Freeze for UAVCAN_NODE_STATUS_DATA
impl RefUnwindSafe for UAVCAN_NODE_STATUS_DATA
impl Send for UAVCAN_NODE_STATUS_DATA
impl Sync for UAVCAN_NODE_STATUS_DATA
impl Unpin for UAVCAN_NODE_STATUS_DATA
impl UnwindSafe for UAVCAN_NODE_STATUS_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
)