#[repr(u8)]pub enum MavFtpOpcode {
Show 18 variants
None = 0,
Terminatesession = 1,
Resetsession = 2,
Listdirectory = 3,
Openfilero = 4,
Readfile = 5,
Createfile = 6,
Writefile = 7,
Removefile = 8,
Createdirectory = 9,
Removedirectory = 10,
Openfilewo = 11,
Truncatefile = 12,
Rename = 13,
Calcfilecrc = 14,
Burstreadfile = 15,
Ack = 128,
Nak = 129,
}Expand description
MAVLink enum MAV_FTP_OPCODE for common dialect.
MAV FTP opcodes: https://mavlink.io/en/services/ftp.html
Variants§
None = 0
MAVLink enum entry MAV_FTP_OPCODE_NONE.
None. Ignored, always ACKed
Terminatesession = 1
MAVLink enum entry MAV_FTP_OPCODE_TERMINATESESSION.
TerminateSession: Terminates open Read session
Resetsession = 2
MAVLink enum entry MAV_FTP_OPCODE_RESETSESSION.
ResetSessions: Terminates all open read sessions
Listdirectory = 3
MAVLink enum entry MAV_FTP_OPCODE_LISTDIRECTORY.
ListDirectory. List files and directories in path from offset
Openfilero = 4
MAVLink enum entry MAV_FTP_OPCODE_OPENFILERO.
OpenFileRO: Opens file at path for reading, returns session
Readfile = 5
MAVLink enum entry MAV_FTP_OPCODE_READFILE.
ReadFile: Reads size bytes from offset in session
Createfile = 6
MAVLink enum entry MAV_FTP_OPCODE_CREATEFILE.
CreateFile: Creates file at path for writing, returns session
Writefile = 7
MAVLink enum entry MAV_FTP_OPCODE_WRITEFILE.
WriteFile: Writes size bytes to offset in session
Removefile = 8
MAVLink enum entry MAV_FTP_OPCODE_REMOVEFILE.
RemoveFile: Remove file at path
Createdirectory = 9
MAVLink enum entry MAV_FTP_OPCODE_CREATEDIRECTORY.
CreateDirectory: Creates directory at path
Removedirectory = 10
MAVLink enum entry MAV_FTP_OPCODE_REMOVEDIRECTORY.
RemoveDirectory: Removes directory at path. The directory must be empty.
Openfilewo = 11
MAVLink enum entry MAV_FTP_OPCODE_OPENFILEWO.
OpenFileWO: Opens file at path for writing, returns session
Truncatefile = 12
MAVLink enum entry MAV_FTP_OPCODE_TRUNCATEFILE.
TruncateFile: Truncate file at path to offset length
Rename = 13
MAVLink enum entry MAV_FTP_OPCODE_RENAME.
Rename: Rename path1 to path2
Calcfilecrc = 14
MAVLink enum entry MAV_FTP_OPCODE_CALCFILECRC.
CalcFileCRC32: Calculate CRC32 for file at path
Burstreadfile = 15
MAVLink enum entry MAV_FTP_OPCODE_BURSTREADFILE.
BurstReadFile: Burst download session file
Ack = 128
MAVLink enum entry MAV_FTP_OPCODE_ACK.
ACK: ACK response
Nak = 129
MAVLink enum entry MAV_FTP_OPCODE_NAK.
NAK: NAK response
Implementations§
Trait Implementations§
Source§impl Clone for MavFtpOpcode
impl Clone for MavFtpOpcode
Source§fn clone(&self) -> MavFtpOpcode
fn clone(&self) -> MavFtpOpcode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MavFtpOpcode
impl Debug for MavFtpOpcode
Source§impl Default for MavFtpOpcode
impl Default for MavFtpOpcode
Source§fn default() -> MavFtpOpcode
fn default() -> MavFtpOpcode
Source§impl<'de> Deserialize<'de> for MavFtpOpcode
impl<'de> Deserialize<'de> for MavFtpOpcode
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 NamedType for MavFtpOpcode
impl NamedType for MavFtpOpcode
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
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for MavFtpOpcode
impl PartialEq for MavFtpOpcode
Source§impl Serialize for MavFtpOpcode
impl Serialize for MavFtpOpcode
Source§impl TryFrom<u8> for MavFtpOpcode
impl TryFrom<u8> for MavFtpOpcode
Source§impl Type for MavFtpOpcode
impl Type for MavFtpOpcode
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.