pub struct Transfer<'a> {
pub remote: &'a Remote,
pub guard: &'a Guard,
pub local: &'a LocalScope,
pub limits: &'a Limits,
}Fields§
§remote: &'a Remote§guard: &'a Guard§local: &'a LocalScope§limits: &'a LimitsImplementations§
Source§impl Transfer<'_>
impl Transfer<'_>
Sourcepub async fn upload(
&self,
local_raw: &str,
remote_raw: &str,
extra_excludes: &[String],
) -> Result<TransferReport>
pub async fn upload( &self, local_raw: &str, remote_raw: &str, extra_excludes: &[String], ) -> Result<TransferReport>
Upload a local file or directory. A file lands at remote_path
(or inside it when remote_path is an existing directory or ends
with /). A directory’s contents land inside remote_path.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Transfer<'a>
impl<'a> !UnwindSafe for Transfer<'a>
impl<'a> Freeze for Transfer<'a>
impl<'a> Send for Transfer<'a>
impl<'a> Sync for Transfer<'a>
impl<'a> Unpin for Transfer<'a>
impl<'a> UnsafeUnpin for Transfer<'a>
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