Struct swarm_ssh::UploadTask
source · pub struct UploadTask<'s> { /* private fields */ }
Expand description
Implementations§
source§impl<'s> UploadTask<'s>
impl<'s> UploadTask<'s>
sourcepub fn get_permission(&self) -> i32
pub fn get_permission(&self) -> i32
Get current permission setting
sourcepub fn set_permission(&mut self, permission: i32)
pub fn set_permission(&mut self, permission: i32)
Set permissions after file upload
sourcepub fn with_permission(self, permission: i32) -> Self
pub fn with_permission(self, permission: i32) -> Self
Set permissions after file upload
sourcepub fn get_remote_path(&self) -> &Path
pub fn get_remote_path(&self) -> &Path
Get current target path
sourcepub fn set_remote_path<P: AsRef<Path>>(&mut self, remote_path: P)
pub fn set_remote_path<P: AsRef<Path>>(&mut self, remote_path: P)
Set target path after file upload
sourcepub fn with_remote_path<P: AsRef<Path>>(self, remote_path: P) -> Self
pub fn with_remote_path<P: AsRef<Path>>(self, remote_path: P) -> Self
Set target path after file upload