Struct mavlink::common::MESSAGE_INTERVAL_DATA
source · pub struct MESSAGE_INTERVAL_DATA {
pub interval_us: i32,
pub message_id: u16,
}
Available on crate feature
common
only.Expand description
id: 244 The interval between messages for a particular MAVLink message ID. This message is sent in response to the MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message) and param2=message_id (the id of the message for which the interval is required). It may also be sent in response to MAV_CMD_GET_MESSAGE_INTERVAL. This interface replaces DATA_STREAM..
Fields§
§interval_us: i32
The interval between two messages. A value of -1 indicates this stream is disabled, 0 indicates it is not available, > 0 indicates the interval at which it is sent..
message_id: u16
The ID of the requested MAVLink message. v1.0 is limited to 254 messages..
Implementations§
source§impl MESSAGE_INTERVAL_DATA
impl MESSAGE_INTERVAL_DATA
pub const ENCODED_LEN: usize = 6usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for MESSAGE_INTERVAL_DATA
impl Clone for MESSAGE_INTERVAL_DATA
source§fn clone(&self) -> MESSAGE_INTERVAL_DATA
fn clone(&self) -> MESSAGE_INTERVAL_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 MESSAGE_INTERVAL_DATA
impl Debug for MESSAGE_INTERVAL_DATA
source§impl Default for MESSAGE_INTERVAL_DATA
impl Default for MESSAGE_INTERVAL_DATA
source§impl<'de> Deserialize<'de> for MESSAGE_INTERVAL_DATA
impl<'de> Deserialize<'de> for MESSAGE_INTERVAL_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 MESSAGE_INTERVAL_DATA
impl MessageData for MESSAGE_INTERVAL_DATA
const ID: u32 = 244u32
const NAME: &'static str = "MESSAGE_INTERVAL"
const EXTRA_CRC: u8 = 95u8
const ENCODED_LEN: usize = 6usize
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 MESSAGE_INTERVAL_DATA
impl PartialEq for MESSAGE_INTERVAL_DATA
source§impl Serialize for MESSAGE_INTERVAL_DATA
impl Serialize for MESSAGE_INTERVAL_DATA
impl StructuralPartialEq for MESSAGE_INTERVAL_DATA
Auto Trait Implementations§
impl Freeze for MESSAGE_INTERVAL_DATA
impl RefUnwindSafe for MESSAGE_INTERVAL_DATA
impl Send for MESSAGE_INTERVAL_DATA
impl Sync for MESSAGE_INTERVAL_DATA
impl Unpin for MESSAGE_INTERVAL_DATA
impl UnwindSafe for MESSAGE_INTERVAL_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
)