pub struct ScpBroker(_, _);
Implementations§
source§impl ScpBroker
impl ScpBroker
sourcepub fn start_download<P: AsRef<OsStr> + ?Sized>(
&mut self,
local_path: &P,
remote_path: &P
) -> SshResult<()>
pub fn start_download<P: AsRef<OsStr> + ?Sized>(
&mut self,
local_path: &P,
remote_path: &P
) -> SshResult<()>
download a file from remote path to local path
this method is equivalent to shell command
scp -P port user@ip:remote_path local_path
This method is running in the backend
that needs end_download
to explicitly end it
sourcepub fn end_download(self) -> SshResult<()>
pub fn end_download(self) -> SshResult<()>
explicitly end the download routine and sync the filesystem
this method will block until all donwload tasks end