Struct mavlink::uavionix::RESOURCE_REQUEST_DATA
source · pub struct RESOURCE_REQUEST_DATA {
pub request_id: u8,
pub uri_type: u8,
pub uri: [u8; 120],
pub transfer_type: u8,
pub storage: [u8; 120],
}
Available on crate feature
uavionix
only.Expand description
id: 142 The autopilot is requesting a resource (file, binary, other type of data).
Fields§
§request_id: u8
Request ID. This ID should be re-used when sending back URI contents.
uri_type: u8
The type of requested URI. 0 = a file via URL. 1 = a UAVCAN binary.
uri: [u8; 120]
The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum).
transfer_type: u8
The way the autopilot wants to receive the URI. 0 = MAVLink FTP. 1 = binary stream..
storage: [u8; 120]
The storage path the autopilot wants the URI to be stored in. Will only be valid if the transfer_type has a storage associated (e.g. MAVLink FTP)..
Implementations§
source§impl RESOURCE_REQUEST_DATA
impl RESOURCE_REQUEST_DATA
pub const ENCODED_LEN: usize = 243usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for RESOURCE_REQUEST_DATA
impl Clone for RESOURCE_REQUEST_DATA
source§fn clone(&self) -> RESOURCE_REQUEST_DATA
fn clone(&self) -> RESOURCE_REQUEST_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 RESOURCE_REQUEST_DATA
impl Debug for RESOURCE_REQUEST_DATA
source§impl Default for RESOURCE_REQUEST_DATA
impl Default for RESOURCE_REQUEST_DATA
source§impl<'de> Deserialize<'de> for RESOURCE_REQUEST_DATA
impl<'de> Deserialize<'de> for RESOURCE_REQUEST_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 RESOURCE_REQUEST_DATA
impl MessageData for RESOURCE_REQUEST_DATA
const ID: u32 = 142u32
const NAME: &'static str = "RESOURCE_REQUEST"
const EXTRA_CRC: u8 = 72u8
const ENCODED_LEN: usize = 243usize
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 RESOURCE_REQUEST_DATA
impl PartialEq for RESOURCE_REQUEST_DATA
source§impl Serialize for RESOURCE_REQUEST_DATA
impl Serialize for RESOURCE_REQUEST_DATA
impl StructuralPartialEq for RESOURCE_REQUEST_DATA
Auto Trait Implementations§
impl Freeze for RESOURCE_REQUEST_DATA
impl RefUnwindSafe for RESOURCE_REQUEST_DATA
impl Send for RESOURCE_REQUEST_DATA
impl Sync for RESOURCE_REQUEST_DATA
impl Unpin for RESOURCE_REQUEST_DATA
impl UnwindSafe for RESOURCE_REQUEST_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
)