pub enum ConsulError {
Show 17 variants
InvalidRequest(Error),
RequestError(Error),
ResponseError(Error),
InvalidResponse(Error),
ResponseDeserializationFailed(Error),
ResponseStringDeserializationFailed(Utf8Error),
UnexpectedResponseCode(StatusCode, Option<String>),
LockAcquisitionFailure(u64),
InvalidUtf8(Utf8Error),
InvalidBase64(DecodeError),
SyncIoError(Error),
SyncInvalidResponseError(ParseBoolError),
SyncUnexpectedResponseCode(u16, String),
TimeoutExceeded(Duration),
ServiceInstanceResolutionFailed(String),
UReqError(Error),
TokenDeleteFailed,
}Expand description
The error type returned from all calls into 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 consul server response could not be converted into a proper http response.
InvalidResponse(Error)
The consul server response was invalid.
ResponseDeserializationFailed(Error)
The consul server response could not be deserialized from json.
ResponseStringDeserializationFailed(Utf8Error)
The consul server response could not be deserialized from bytes.
UnexpectedResponseCode(StatusCode, Option<String>)
The consul server response was something other than 200.
LockAcquisitionFailure(u64)
The consul server refused a lock acquisition.
InvalidUtf8(Utf8Error)
Consul returned invalid UTF8.
InvalidBase64(DecodeError)
Consul returned invalid base64.
SyncIoError(Error)
IO error from sync api.
SyncInvalidResponseError(ParseBoolError)
Response parse error from sync api.
SyncUnexpectedResponseCode(u16, String)
Unexpected response code from sync api.
TimeoutExceeded(Duration)
Consul request exceeded specified timeout.
ServiceInstanceResolutionFailed(String)
Unable to resolve the service’s instances in Consul.
UReqError(Error)
An error from ureq occurred.
TokenDeleteFailed
Failed to delete Token.