pub enum Error {
Credential(CredentialError),
Status {
status: u16,
message: String,
},
Network(String),
}Expand description
A failed request. No variant holds a credential.
Variants§
Credential(CredentialError)
No credential; the message says where to get one (REQ-22).
Status
The service answered with a failure status.
Network(String)
The service could not be reached.
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<CredentialError> for Error
impl From<CredentialError> for Error
Source§fn from(source: CredentialError) -> Self
fn from(source: CredentialError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Errorwhere
RawVecInner: Send,
impl Sync for Errorwhere
RawVecInner: Sync,
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Errorwhere
RawVecInner: UnwindSafe,
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