pub enum CommandType {
Show 18 variants
Welcome {
uuid: String,
},
ActiveConnections {
users: Vec<ConnectionInfo>,
},
UpdateConnection {
connection_info: ConnectionInfo,
},
NotifyDisconnect {
uuid: String,
},
GetConnections {
reply_uuid: String,
},
SetConnectionInfo {
info: ConnectionInfo,
},
Disconnect,
Control {
message_type: ControlMessage,
},
RequestCapabilities {
reply_uuid: String,
},
ProvideCapabilities {
sender_uuid: String,
list: Vec<ControlTypes>,
},
Ack,
StartFileTransfer {
name: String,
chunk_count: u64,
blob_size: usize,
checksum: String,
return_uuid: String,
},
FileTransferBlob {
name: String,
chunk_num: i32,
blob: Vec<u8>,
return_uuid: String,
},
FileTransferAck {
name: String,
start: bool,
chunk_num: i32,
whole: bool,
},
FileTransferNack {
name: String,
start: bool,
chunk_num: i32,
whole: bool,
},
AddFileWatch {
return_uuid: String,
},
ProvideFiles {
uuid: String,
files: Vec<FileDefinition>,
},
UpdateFile {
uuid: String,
file: FileDefinition,
add: bool,
},
}Variants§
Welcome
ActiveConnections
Fields
§
users: Vec<ConnectionInfo>UpdateConnection
Fields
§
connection_info: ConnectionInfoNotifyDisconnect
GetConnections
SetConnectionInfo
Fields
§
info: ConnectionInfoDisconnect
Control
Fields
§
message_type: ControlMessageRequestCapabilities
ProvideCapabilities
Ack
StartFileTransfer
FileTransferBlob
FileTransferAck
FileTransferNack
AddFileWatch
ProvideFiles
UpdateFile
Trait Implementations§
Source§impl Clone for CommandType
impl Clone for CommandType
Source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
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<'de> Deserialize<'de> for CommandType
impl<'de> Deserialize<'de> for CommandType
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
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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