Enum iroh_blobs::get::GetResponseError
source · pub enum GetResponseError {
Connection(ConnectionError),
Write(WriteError),
Read(ReadError),
Decode(DecodeError),
Generic(Error),
}
Expand description
Error when processing a response
Variants§
Connection(ConnectionError)
Error when opening a stream
Write(WriteError)
Error when writing the handshake or request to the stream
Read(ReadError)
Error when reading from the stream
Decode(DecodeError)
Error when decoding, e.g. hash mismatch
Generic(Error)
A generic error
Trait Implementations§
source§impl Debug for GetResponseError
impl Debug for GetResponseError
source§impl Display for GetResponseError
impl Display for GetResponseError
source§impl Error for GetResponseError
impl Error for GetResponseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConnectionError> for GetResponseError
impl From<ConnectionError> for GetResponseError
source§impl From<DecodeError> for GetResponseError
impl From<DecodeError> for GetResponseError
source§impl From<Error> for GetResponseError
impl From<Error> for GetResponseError
source§impl From<Error> for GetResponseError
impl From<Error> for GetResponseError
source§impl From<GetResponseError> for Error
impl From<GetResponseError> for Error
source§fn from(cause: GetResponseError) -> Self
fn from(cause: GetResponseError) -> Self
Converts to this type from the input type.
source§impl From<ReadError> for GetResponseError
impl From<ReadError> for GetResponseError
Auto Trait Implementations§
impl !Freeze for GetResponseError
impl !RefUnwindSafe for GetResponseError
impl Send for GetResponseError
impl Sync for GetResponseError
impl Unpin for GetResponseError
impl !UnwindSafe for GetResponseError
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