#[repr(C)]pub enum FileTransferAction {
InitServer = 0,
InitChannel = 1,
Upload = 2,
Download = 3,
Delete = 4,
CreateDir = 5,
Rename = 6,
FileList = 7,
FileInfo = 8,
}Expand description
File transfer actions
Variants§
InitServer = 0
The virtual server is created. result->channelPath can be changed to create a different directory than the default ‘virtualserver_x’ where x is the virtual server.
InitChannel = 1
A channel is created. result->channelPath can be changed to create a different directory then the default ‘channel_x’ where x is the channel id.
Upload = 2
A file is being uploaded. All values in the result struct can be modified.
Download = 3
A file is being downloaded. All values in the result struct can be modified.
Delete = 4
A file is being deleted. All values in the result struct can be modified.
CreateDir = 5
A directory is being created in a channel. All values in the result struct can be modified.
Rename = 6
A file or folder is being renamed. The callback will be called twice! Once for the old and then for the new name. All values in the result struct can be modified.
FileList = 7
A directory listing is requested. All values in the result struct can be modified.
FileInfo = 8
Information of a file is requested. All values in the result struct can be modified.
Trait Implementations§
Source§impl Clone for FileTransferAction
impl Clone for FileTransferAction
Source§fn clone(&self) -> FileTransferAction
fn clone(&self) -> FileTransferAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more