You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use a loop to read data from a file, PUT it to a FTP server and update a progress bar. tokio::fs::File already implements the R trait trait in put:
I'm trying to use a loop to read data from a file,
PUT
it to a FTP server and update a progress bar.tokio::fs::File
already implements the R trait trait input
:So one can just write something like:
Qs:
loop
to buffer-read from the file and async PUT it to the ftp stream?r
in theput
signature need to be mutable? I'm kind of confused, since we just read from the file. I see here,r
is just copied.The text was updated successfully, but these errors were encountered: