Struct ffsend_api::action::download::Download
source · pub struct Download<'a> { /* private fields */ }
Expand description
A file upload action to a Send server.
Implementations
sourceimpl<'a> Download<'a>
impl<'a> Download<'a>
sourcepub fn new(
file: &'a RemoteFile,
target: PathBuf,
password: Option<String>,
check_exists: bool,
metadata_response: Option<MetadataResponse>
) -> Self
pub fn new(
file: &'a RemoteFile,
target: PathBuf,
password: Option<String>,
check_exists: bool,
metadata_response: Option<MetadataResponse>
) -> Self
Construct a new download action for the given remote file. It is recommended to check whether the file exists, unless that is already done.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Download<'a>
impl<'a> Send for Download<'a>
impl<'a> Sync for Download<'a>
impl<'a> Unpin for Download<'a>
impl<'a> UnwindSafe for Download<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more