pub enum Error {
NotFound(Error),
RemoteReset(Error),
NoncompliantNode(Error),
Io(Error),
BadRequest(Error),
LocalFailure(Error),
}
Expand description
Failures for a fetch operation
Variants§
NotFound(Error)
Hash not found.
RemoteReset(Error)
Remote has reset the connection.
NoncompliantNode(Error)
Remote behaved in a non-compliant way.
Io(Error)
Network or IO operation failed.
BadRequest(Error)
Our download request is invalid.
LocalFailure(Error)
Operation failed on the local node.
Trait Implementations§
Source§impl Error for Error
impl Error for 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()
Source§impl From<AtBlobHeaderNextError> for Error
impl From<AtBlobHeaderNextError> for Error
Source§fn from(value: AtBlobHeaderNextError) -> Self
fn from(value: AtBlobHeaderNextError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectedNextError> for Error
impl From<ConnectedNextError> for Error
Source§fn from(value: ConnectedNextError) -> Self
fn from(value: ConnectedNextError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(value: DecodeError) -> Self
fn from(value: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FailureAction
Available on crate feature downloader
only.
impl From<Error> for FailureAction
Available on crate feature
downloader
only.Source§impl From<ProgressSendError> for Error
impl From<ProgressSendError> for Error
Source§fn from(value: ProgressSendError) -> Self
fn from(value: ProgressSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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