pub enum GetError {
OpenStream(ConnectionError),
Call(CallError),
Remote {
code: u8,
name: String,
detail: Option<String>,
},
UnexpectedReply(Value),
NotFound,
ManifestDecode(FromWireError),
HashMismatch,
Verify(VerifyError),
}Variants§
OpenStream(ConnectionError)
Opening the dedicated stream itself failed (e.g. the connection is already dead) — never got as far as making a call.
Call(CallError)
Remote
UnexpectedReply(Value)
NotFound
ManifestDecode(FromWireError)
HashMismatch
A fetched block or reassembled blob didn’t hash to the MCID it was fetched under — see the module-level note in §12.1: a station may only be relaying content it doesn’t itself store, so its answer is never trusted without this client-side check.
Verify(VerifyError)
Trait Implementations§
Source§impl Error for GetError
impl Error for GetError
1.30.0 · 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 !Freeze for GetError
impl RefUnwindSafe for GetError
impl Send for GetError
impl Sync for GetError
impl Unpin for GetError
impl UnsafeUnpin for GetError
impl UnwindSafe for GetError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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