pub enum DownloadError<E> {
SendCancelled(Arc<RcvFileSndCancelled>),
AcceptCancelled(Arc<RcvFileAcceptedSndCancelledResponse>),
Receive(Arc<RcvFileError>),
Api(E),
}Available on crate feature
xftp only.Expand description
Error returned when a DownloadFileBuilder future resolves unsuccessfully.
Variants§
SendCancelled(Arc<RcvFileSndCancelled>)
The sender cancelled the transfer after the download was accepted.
AcceptCancelled(Arc<RcvFileAcceptedSndCancelledResponse>)
The file was no longer available when the download request arrived.
Receive(Arc<RcvFileError>)
The SimpleX agent reported an error while receiving the file.
Api(E)
The API call to initiate the download failed.
Trait Implementations§
Source§impl<E> Debug for DownloadError<E>where
E: Debug,
impl<E> Debug for DownloadError<E>where
E: Debug,
Source§impl<E> Display for DownloadError<E>where
E: Display,
impl<E> Display for DownloadError<E>where
E: Display,
Source§impl<E> Error for DownloadError<E>where
E: 'static + Error,
impl<E> Error for DownloadError<E>where
E: 'static + Error,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for DownloadError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DownloadError<E>where
E: RefUnwindSafe,
impl<E> Send for DownloadError<E>where
E: Send,
impl<E> Sync for DownloadError<E>where
E: Sync,
impl<E> Unpin for DownloadError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DownloadError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for DownloadError<E>where
E: UnwindSafe,
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