pub enum RpcClientError {
Connection(String),
Server(String),
NotAuthenticated(String),
Timeout,
Protocol(String),
}Expand description
Errors the RpcClient can return.
Variants§
Connection(String)
Transport-level failure: dial, write, or the connection dying while the call was pending.
Server(String)
Server returned Result::Err(message) for the call.
NotAuthenticated(String)
The server refused the session’s credentials — NOAUTH (no AUTH
sent, or HELLO issued without credentials against an auth-enabled
server), WRONGPASS, or NOPERM for an admin-only command.
Timeout
The connect or per-call timeout elapsed.
Protocol(String)
The peer sent a malformed or oversized frame; the connection is poisoned and the next call re-dials.
Trait Implementations§
Source§impl Debug for RpcClientError
impl Debug for RpcClientError
Source§impl Display for RpcClientError
impl Display for RpcClientError
Source§impl Error for RpcClientError
impl Error for RpcClientError
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<ClientError> for RpcClientError
impl From<ClientError> for RpcClientError
Source§fn from(err: ClientError) -> Self
fn from(err: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcClientError
impl RefUnwindSafe for RpcClientError
impl Send for RpcClientError
impl Sync for RpcClientError
impl Unpin for RpcClientError
impl UnsafeUnpin for RpcClientError
impl UnwindSafe for RpcClientError
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