#[repr(u8)]pub enum StorageStatus {
Empty = 0,
Unformatted = 1,
Ready = 2,
NotSupported = 3,
}Expand description
MAVLink enum STORAGE_STATUS for common dialect.
Flags to indicate the status of camera storage.
Variants§
Empty = 0
MAVLink enum entry STORAGE_STATUS_EMPTY.
Storage is missing (no microSD card loaded for example.)
Unformatted = 1
MAVLink enum entry STORAGE_STATUS_UNFORMATTED.
Storage present but unformatted.
Ready = 2
MAVLink enum entry STORAGE_STATUS_READY.
Storage present and ready.
NotSupported = 3
MAVLink enum entry STORAGE_STATUS_NOT_SUPPORTED.
Camera does not supply storage status information. Capacity information in STORAGE_INFORMATION fields will be ignored.
Implementations§
Trait Implementations§
Source§impl Clone for StorageStatus
impl Clone for StorageStatus
Source§fn clone(&self) -> StorageStatus
fn clone(&self) -> StorageStatus
Returns a duplicate 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 StorageStatus
impl Debug for StorageStatus
Source§impl Default for StorageStatus
impl Default for StorageStatus
Source§fn default() -> StorageStatus
fn default() -> StorageStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageStatus
impl<'de> Deserialize<'de> for StorageStatus
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 NamedType for StorageStatus
impl NamedType for StorageStatus
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl PartialEq for StorageStatus
impl PartialEq for StorageStatus
Source§impl Serialize for StorageStatus
impl Serialize for StorageStatus
Source§impl TryFrom<u8> for StorageStatus
impl TryFrom<u8> for StorageStatus
Source§impl Type for StorageStatus
impl Type for StorageStatus
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Copy for StorageStatus
impl StructuralPartialEq for StorageStatus
Auto Trait Implementations§
impl Freeze for StorageStatus
impl RefUnwindSafe for StorageStatus
impl Send for StorageStatus
impl Sync for StorageStatus
impl Unpin for StorageStatus
impl UnwindSafe for StorageStatus
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