pub struct DownloadFileBuilder<'a, C: 'a + ?Sized> { /* private fields */ }Available on crate feature
xftp only.Implementations§
Source§impl<'a, C: 'a + ?Sized> DownloadFileBuilder<'a, C>
impl<'a, C: 'a + ?Sized> DownloadFileBuilder<'a, C>
Sourcepub fn via_user_approved_relays(self) -> Self
pub fn via_user_approved_relays(self) -> Self
Route the download through user-approved relays rather than the default ones.
Sourcepub fn store_encrypted(self) -> Self
pub fn store_encrypted(self) -> Self
Store the downloaded file in encrypted form.
Trait Implementations§
Source§impl<'a, C: 'a + ClientApi> IntoFuture for DownloadFileBuilder<'a, XftpClient<C>>
impl<'a, C: 'a + ClientApi> IntoFuture for DownloadFileBuilder<'a, XftpClient<C>>
Source§type Output = Result<Arc<RcvFileComplete>, DownloadError<<XftpClient<C> as ClientApi>::Error>>
type Output = Result<Arc<RcvFileComplete>, DownloadError<<XftpClient<C> as ClientApi>::Error>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <DownloadFileBuilder<'a, XftpClient<C>> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <DownloadFileBuilder<'a, XftpClient<C>> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, C> Freeze for DownloadFileBuilder<'a, C>where
C: ?Sized,
impl<'a, C> RefUnwindSafe for DownloadFileBuilder<'a, C>where
C: RefUnwindSafe + ?Sized,
impl<'a, C> Send for DownloadFileBuilder<'a, C>
impl<'a, C> Sync for DownloadFileBuilder<'a, C>
impl<'a, C> Unpin for DownloadFileBuilder<'a, C>where
C: ?Sized,
impl<'a, C> UnsafeUnpin for DownloadFileBuilder<'a, C>where
C: ?Sized,
impl<'a, C> UnwindSafe for DownloadFileBuilder<'a, C>where
C: RefUnwindSafe + ?Sized,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more