pub struct RemoteClientError {
pub code: String,
pub message: String,
pub retryable: bool,
pub details: Option<Box<RejectionDetails>>,
}Fields§
§code: String§message: String§retryable: bool§details: Option<Box<RejectionDetails>>Host-approved recovery metadata of a ValidationRejection that refused
a registered query or command (§6.3.1 bounds). None when the server
attached none, as on servers that predate the member. Boxed to keep
Result<_, RemoteClientError> small.
Trait Implementations§
Source§impl Clone for RemoteClientError
impl Clone for RemoteClientError
Source§impl Debug for RemoteClientError
impl Debug for RemoteClientError
Source§impl Display for RemoteClientError
impl Display for RemoteClientError
impl Eq for RemoteClientError
Source§impl Error for RemoteClientError
impl Error for RemoteClientError
1.30.0 · 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<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.
Source§impl PartialEq for RemoteClientError
impl PartialEq for RemoteClientError
impl StructuralPartialEq for RemoteClientError
Auto Trait Implementations§
impl Forget for RemoteClientError
impl Freeze for RemoteClientError
impl Move for RemoteClientError
impl RefUnwindSafe for RemoteClientError
impl Send for RemoteClientError
impl Sync for RemoteClientError
impl Unpin for RemoteClientError
impl UnsafeUnpin for RemoteClientError
impl UnwindSafe for RemoteClientError
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