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