pub struct TransportError {
pub code: String,
pub message: String,
pub details: Option<Value>,
}Expand description
A transport-level or request-level failure (§1.1 HTTP-JSON surface).
Fields§
§code: String§message: String§details: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl From<TransportError> for RemoteClientError
A transport failure keeps the server’s own retryable verdict (the native
transport copies it into details.retryable). Without one, a host
transport failure (transport.*, sync.transport_failed) is retryable
and every other code, a client-local client.* refusal included, is not.
impl From<TransportError> for RemoteClientError
A transport failure keeps the server’s own retryable verdict (the native
transport copies it into details.retryable). Without one, a host
transport failure (transport.*, sync.transport_failed) is retryable
and every other code, a client-local client.* refusal included, is not.
Source§fn from(error: TransportError) -> Self
fn from(error: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for TransportError
impl Freeze for TransportError
impl Move for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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