We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2808855 commit 12b04c4Copy full SHA for 12b04c4
src/ftp.rs
@@ -289,7 +289,7 @@ impl FtpStream {
289
Ok(())
290
}
291
/// Sets the byte from which the transfer is to be restarted.
292
- pub fn restart_from(&mut self, offset: u64) -> crate::Result<()> {
+ pub async fn restart_from(&mut self, offset: u64) -> Result<()> {
293
let rest_command = format!("REST {}\r\n", offset.to_string());
294
self.write_str(&rest_command)?;
295
self.read_response(status::REQUEST_FILE_PENDING).map(|_| ())
0 commit comments