pub enum MultiplexerError {
Timeout(Duration),
ClientError {
code: i32,
message: String,
},
Transport(String),
ChannelClosed,
Serialization(Error),
UnsupportedCapability(String),
}Expand description
Errors from server→client requests
Variants§
Timeout(Duration)
Request timed out waiting for response
ClientError
Client returned an error response
Transport(String)
Transport error
ChannelClosed
Response channel was closed (internal error)
Serialization(Error)
Failed to serialize request
UnsupportedCapability(String)
Client doesn’t support the requested capability
Trait Implementations§
Source§impl Debug for MultiplexerError
impl Debug for MultiplexerError
Source§impl Display for MultiplexerError
impl Display for MultiplexerError
Source§impl Error for MultiplexerError
impl Error for MultiplexerError
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()
Auto Trait Implementations§
impl Freeze for MultiplexerError
impl !RefUnwindSafe for MultiplexerError
impl Send for MultiplexerError
impl Sync for MultiplexerError
impl Unpin for MultiplexerError
impl !UnwindSafe for MultiplexerError
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