pub struct Download<'a> { /* private fields */ }Expand description
A file download action to a Send server.
This action is compatible with both Firefox Send v2 and v3, but the server API version to use must be explicitly given due to a version specific download method.
Implementations§
Source§impl<'a> Download<'a>
impl<'a> Download<'a>
Sourcepub fn new(
version: Version,
file: &'a RemoteFile,
target: PathBuf,
password: Option<String>,
check_exists: bool,
metadata_response: Option<MetadataResponse>,
) -> Self
pub fn new( version: Version, 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> Freeze for Download<'a>
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§
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