pub enum ClientError {
Transport(Error),
ResponseTooLarge {
maximum: usize,
},
InvalidContentType,
InvalidJson(Error),
InvalidRequestId,
RequestIdMismatch,
Api(ApiFailure),
UnexpectedStatus(u16),
InvalidWitnessReference,
WitnessDigestMismatch,
WitnessLengthMismatch,
}Expand description
Transport, bound, envelope, or declared API failure.
Variants§
Transport(Error)
HTTP transport failed before a complete bounded response arrived.
ResponseTooLarge
Response declared or exceeded a local byte bound.
InvalidContentType
A JSON operation returned a non-JSON media type.
InvalidJson(Error)
JSON response did not match the public versioned contract.
InvalidRequestId
The request ID header was missing, duplicated, or malformed.
RequestIdMismatch
Error envelope and header correlation identifiers disagree.
Api(ApiFailure)
Server returned a non-success response that conformed to ErrorV1.
UnexpectedStatus(u16)
A successful operation returned an unexpected HTTP status.
InvalidWitnessReference
Proof witness reference was not canonical for its proof identity.
WitnessDigestMismatch
Downloaded witness digest header differs from the proof.
WitnessLengthMismatch
Downloaded witness length differs from the proof.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
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<ApiFailure> for ClientError
impl From<ApiFailure> for ClientError
Source§fn from(source: ApiFailure) -> Self
fn from(source: ApiFailure) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Auto Trait Implementations§
impl !RefUnwindSafe for ClientError
impl !UnwindSafe for ClientError
impl Freeze for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
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