pub enum GetError {
NotFound {
source: Box<NotFoundCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
RemoteReset {
source: Box<RemoteResetCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
NoncompliantNode {
source: Box<NoncompliantNodeCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
Io {
source: Box<IoCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
BadRequest {
source: Box<BadRequestCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
LocalFailure {
source: Box<LocalFailureCases>,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
}
Expand description
Failures for a get operation
Variants§
NotFound
Hash not found, or a requested chunk for the hash not found.
RemoteReset
Remote has reset the connection.
NoncompliantNode
Remote behaved in a non-compliant way.
Io
Network or IO operation failed.
BadRequest
Our download request is invalid.
LocalFailure
Operation failed on the local node.
Trait Implementations§
Source§impl Error for GetError
impl Error for GetError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for GetError
impl ErrorCompat for GetError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl From<AtBlobHeaderNextError> for GetError
impl From<AtBlobHeaderNextError> for GetError
Source§fn from(value: AtBlobHeaderNextError) -> Self
fn from(value: AtBlobHeaderNextError) -> Self
Converts to this type from the input type.
Source§impl From<ClosedStream> for GetError
impl From<ClosedStream> for GetError
Source§fn from(value: ClosedStream) -> Self
fn from(value: ClosedStream) -> Self
Converts to this type from the input type.
Source§impl From<ConnectedNextError> for GetError
impl From<ConnectedNextError> for GetError
Source§fn from(value: ConnectedNextError) -> Self
fn from(value: ConnectedNextError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for GetError
impl From<ConnectionError> for GetError
Source§fn from(value: ConnectionError) -> Self
fn from(value: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for GetError
impl From<DecodeError> for GetError
Source§fn from(value: DecodeError) -> Self
fn from(value: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<GetError> for GetBlobItem
impl From<GetError> for GetBlobItem
Source§impl From<WriteError> for GetError
impl From<WriteError> for GetError
Source§fn from(value: WriteError) -> Self
fn from(value: WriteError) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a GetBlobItem> for &'a GetError
impl<'a> TryFrom<&'a GetBlobItem> for &'a GetError
Source§type Error = &'a GetBlobItem
type Error = &'a GetBlobItem
The type returned in the event of a conversion error.
Source§impl TryFrom<GetBlobItem> for GetError
impl TryFrom<GetBlobItem> for GetError
Source§type Error = GetBlobItem
type Error = GetBlobItem
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for GetError
impl !RefUnwindSafe for GetError
impl Send for GetError
impl Sync for GetError
impl Unpin for GetError
impl !UnwindSafe for GetError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.