pub enum RegistryClientError {
Transport(RpcError),
Codec(String),
Server(RegistryRpcError),
}Expand description
Client-side errors. Distinct from RpcError (transport),
postcard::Error (codec), and RegistryRpcError
(server-side handler) so the caller can match on the failure
shape they care about.
Variants§
Transport(RpcError)
Transport-level failure — no route, timeout, server returned a non-Ok status before invoking the handler.
Codec(String)
Request serialization or response deserialization failed.
Server(RegistryRpcError)
Server handler rejected the request.
Trait Implementations§
Source§impl Debug for RegistryClientError
impl Debug for RegistryClientError
Source§impl Display for RegistryClientError
impl Display for RegistryClientError
Source§impl Error for RegistryClientError
impl Error for RegistryClientError
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<RpcError> for RegistryClientError
impl From<RpcError> for RegistryClientError
Source§fn from(e: RpcError) -> RegistryClientError
fn from(e: RpcError) -> RegistryClientError
Converts to this type from the input type.
Source§impl From<TypedCallError> for RegistryClientError
impl From<TypedCallError> for RegistryClientError
Source§fn from(e: TypedCallError) -> RegistryClientError
fn from(e: TypedCallError) -> RegistryClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RegistryClientError
impl !UnwindSafe for RegistryClientError
impl Freeze for RegistryClientError
impl Send for RegistryClientError
impl Sync for RegistryClientError
impl Unpin for RegistryClientError
impl UnsafeUnpin for RegistryClientError
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