Struct mavlink::common::STORAGE_INFORMATION_DATA
source · pub struct STORAGE_INFORMATION_DATA {
pub time_boot_ms: u32,
pub total_capacity: f32,
pub used_capacity: f32,
pub available_capacity: f32,
pub read_speed: f32,
pub write_speed: f32,
pub storage_id: u8,
pub storage_count: u8,
pub status: StorageStatus,
pub mavtype: StorageType,
pub name: [u8; 32],
pub storage_usage: StorageUsageFlag,
}
common
only.Expand description
id: 261 Information about a storage medium. This message is sent in response to a request with MAV_CMD_REQUEST_MESSAGE and whenever the status of the storage changes (STORAGE_STATUS). Use MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of requested storage: 0 for all, 1 for first, 2 for second, etc..
Fields§
§time_boot_ms: u32
Timestamp (time since system boot)..
total_capacity: f32
Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
used_capacity: f32
Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
available_capacity: f32
Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
read_speed: f32
Read speed..
write_speed: f32
Write speed..
storage_id: u8
Storage ID (1 for first, 2 for second, etc.).
storage_count: u8
Number of storage devices.
status: StorageStatus
Status of storage.
mavtype: StorageType
Type of storage.
name: [u8; 32]
Textual storage name to be used in UI (microSD 1, Internal Memory, etc.) This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, the generic type is shown to the user..
storage_usage: StorageUsageFlag
Flags indicating whether this instance is preferred storage for photos, videos, etc. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported). This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE. If the media usage flags are not set, a GCS may assume storage ID 1 is the default storage for all media types..
Implementations§
source§impl STORAGE_INFORMATION_DATA
impl STORAGE_INFORMATION_DATA
pub const ENCODED_LEN: usize = 61usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for STORAGE_INFORMATION_DATA
impl Clone for STORAGE_INFORMATION_DATA
source§fn clone(&self) -> STORAGE_INFORMATION_DATA
fn clone(&self) -> STORAGE_INFORMATION_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for STORAGE_INFORMATION_DATA
impl Debug for STORAGE_INFORMATION_DATA
source§impl Default for STORAGE_INFORMATION_DATA
impl Default for STORAGE_INFORMATION_DATA
source§impl<'de> Deserialize<'de> for STORAGE_INFORMATION_DATA
impl<'de> Deserialize<'de> for STORAGE_INFORMATION_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>,
source§impl MessageData for STORAGE_INFORMATION_DATA
impl MessageData for STORAGE_INFORMATION_DATA
const ID: u32 = 261u32
const NAME: &'static str = "STORAGE_INFORMATION"
const EXTRA_CRC: u8 = 179u8
const ENCODED_LEN: usize = 61usize
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 STORAGE_INFORMATION_DATA
impl PartialEq for STORAGE_INFORMATION_DATA
source§impl Serialize for STORAGE_INFORMATION_DATA
impl Serialize for STORAGE_INFORMATION_DATA
impl StructuralPartialEq for STORAGE_INFORMATION_DATA
Auto Trait Implementations§
impl Freeze for STORAGE_INFORMATION_DATA
impl RefUnwindSafe for STORAGE_INFORMATION_DATA
impl Send for STORAGE_INFORMATION_DATA
impl Sync for STORAGE_INFORMATION_DATA
impl Unpin for STORAGE_INFORMATION_DATA
impl UnwindSafe for STORAGE_INFORMATION_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
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)
clone_to_uninit
)