pub enum NomadError {
InvalidRequest(Error),
RequestError(Error),
ResponseError(Error),
InvalidResponse(Error),
ResponseDeserializationFailed(Error),
UnexpectedResponseCode(StatusCode, String),
Timeout(Duration),
NativeRootsError(Error),
}Expand description
The error type returned from all calls into this this crate.
Variants§
InvalidRequest(Error)
The request was invalid and could not be serialized to valid json.
RequestError(Error)
The request was invalid and could not be converted into a proper http request.
ResponseError(Error)
The nomad server response could not be converted into a proper http response.
InvalidResponse(Error)
The nomad server response was invalid.
ResponseDeserializationFailed(Error)
The nomad server response could not be deserialized from json.
UnexpectedResponseCode(StatusCode, String)
The nomad server response was something other than 200. The status code and the body of the response are included.
Timeout(Duration)
The nomad server failed to respond in the given timeout.
NativeRootsError(Error)
Failed to build a connector with native roots.
Trait Implementations§
Source§impl Debug for NomadError
impl Debug for NomadError
Source§impl Display for NomadError
impl Display for NomadError
Source§impl Error for NomadError
impl Error for NomadError
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 NomadError
impl !RefUnwindSafe for NomadError
impl Send for NomadError
impl Sync for NomadError
impl Unpin for NomadError
impl !UnwindSafe for NomadError
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