pub struct DATA_TRANSMISSION_HANDSHAKE_DATA {
pub size: u32,
pub width: u16,
pub height: u16,
pub packets: u16,
pub mavtype: MavlinkDataStreamType,
pub payload: u8,
pub jpg_quality: u8,
}
Available on crate feature
ualberta
only.Expand description
id: 130 Handshake message to initiate, control and stop image streaming when using the Image Transmission Protocol: https://mavlink.io/en/services/image_transmission.html..
Fields§
§size: u32
total data size (set on ACK only)..
width: u16
Width of a matrix or image..
height: u16
Height of a matrix or image..
packets: u16
Number of packets being sent (set on ACK only)..
mavtype: MavlinkDataStreamType
Type of requested/acknowledged data..
payload: u8
Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)..
jpg_quality: u8
JPEG quality. Values: [1-100]..
Implementations§
source§impl DATA_TRANSMISSION_HANDSHAKE_DATA
impl DATA_TRANSMISSION_HANDSHAKE_DATA
pub const ENCODED_LEN: usize = 13usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for DATA_TRANSMISSION_HANDSHAKE_DATA
impl Clone for DATA_TRANSMISSION_HANDSHAKE_DATA
source§fn clone(&self) -> DATA_TRANSMISSION_HANDSHAKE_DATA
fn clone(&self) -> DATA_TRANSMISSION_HANDSHAKE_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<'de> Deserialize<'de> for DATA_TRANSMISSION_HANDSHAKE_DATA
impl<'de> Deserialize<'de> for DATA_TRANSMISSION_HANDSHAKE_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 DATA_TRANSMISSION_HANDSHAKE_DATA
impl MessageData for DATA_TRANSMISSION_HANDSHAKE_DATA
const ID: u32 = 130u32
const NAME: &'static str = "DATA_TRANSMISSION_HANDSHAKE"
const EXTRA_CRC: u8 = 29u8
const ENCODED_LEN: usize = 13usize
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 DATA_TRANSMISSION_HANDSHAKE_DATA
impl PartialEq for DATA_TRANSMISSION_HANDSHAKE_DATA
source§fn eq(&self, other: &DATA_TRANSMISSION_HANDSHAKE_DATA) -> bool
fn eq(&self, other: &DATA_TRANSMISSION_HANDSHAKE_DATA) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DATA_TRANSMISSION_HANDSHAKE_DATA
Auto Trait Implementations§
impl Freeze for DATA_TRANSMISSION_HANDSHAKE_DATA
impl RefUnwindSafe for DATA_TRANSMISSION_HANDSHAKE_DATA
impl Send for DATA_TRANSMISSION_HANDSHAKE_DATA
impl Sync for DATA_TRANSMISSION_HANDSHAKE_DATA
impl Unpin for DATA_TRANSMISSION_HANDSHAKE_DATA
impl UnwindSafe for DATA_TRANSMISSION_HANDSHAKE_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
)