pub enum SftpCommand {
ListDir(String),
Download {
remote: String,
local: String,
transfer_id: TransferId,
},
Upload {
local: String,
remote: String,
transfer_id: TransferId,
},
Delete(String),
MkDir(String),
Rename {
from: String,
to: String,
},
ReadPreview(String),
Disconnect,
}Expand description
Commands processed by the SftpManager background task.
Variants§
ListDir(String)
List the entries in a remote directory.
Download
Download a remote file to a local path.
Upload
Upload a local file to a remote path.
Delete(String)
Delete a remote file (falls back to removing an empty directory).
MkDir(String)
Create a remote directory.
Rename
Rename / move a remote path.
ReadPreview(String)
Read the first 4 096 bytes of a remote file for preview.
Disconnect
Shut down the task gracefully.
Auto Trait Implementations§
impl Freeze for SftpCommand
impl RefUnwindSafe for SftpCommand
impl Send for SftpCommand
impl Sync for SftpCommand
impl Unpin for SftpCommand
impl UnsafeUnpin for SftpCommand
impl UnwindSafe for SftpCommand
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