Skip to main content

Module error

Module error 

Source
Expand description

ClientError and the opaque wrapper types (HttpError, WebSocketError, InvalidHeaderValueError) that hide reqwest and tokio_tungstenite from this crate’s public API.

§SemVer policy

reqwest and tokio-tungstenite are private dependencies of this crate. Their types do not appear in any public function signature, variant payload, or From impl. The wrapper types (HttpError, WebSocketError, InvalidHeaderValueError) expose a curated set of diagnostic accessors that return primitive types only, so this crate can bump the underlying transport’s major version without breaking downstream callers.

Internal construction goes through pub(crate) helpers on ClientError (from_reqwest, from_ws, from_invalid_header) — downstream consumers cannot construct the transport-error variants and never need to.

Structs§

HttpError
HTTP transport error reported by the underlying HTTP client.
InvalidHeaderValueError
A header value (typically an authentication token) contained bytes that are not valid for an HTTP header.
WebSocketError
WebSocket transport error reported by the underlying WebSocket client.

Enums§

ClientError
Errors produced by the base JMAP client.