pub enum PeerError {
Unauthorized,
NotFound,
Status(u16),
Protocol(String),
Io(String),
}Expand description
Errors from peer serving or fetching.
Variants§
The token was missing or wrong.
NotFound
No source is registered for the requested handle.
Status(u16)
The peer returned an unexpected HTTP status.
Protocol(String)
A malformed request/response or other protocol error.
Io(String)
An underlying I/O failure.
Trait Implementations§
Source§impl Error for PeerError
impl Error for PeerError
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 PeerError
impl RefUnwindSafe for PeerError
impl Send for PeerError
impl Sync for PeerError
impl Unpin for PeerError
impl UnsafeUnpin for PeerError
impl UnwindSafe for PeerError
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