pub enum RunError<T> {
UnexpectedMessageReceived(Message),
Transport(T),
Serialize(SerializeError),
Deserialize(DeserializeError),
}
Expand description
Error while running a client.
Variants§
UnexpectedMessageReceived(Message)
An unexpected message was received.
Transport(T)
The transport returned an error.
This error indicates some issue with the lower-level transport mechanism, e.g. an I/O error.
Serialize(SerializeError)
A value failed to serialize.
Deserialize(DeserializeError)
A value failed to deserialize.
Trait Implementations§
source§impl<T> Error for RunError<T>
impl<T> Error for RunError<T>
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<T> Freeze for RunError<T>where
T: Freeze,
impl<T> RefUnwindSafe for RunError<T>where
T: RefUnwindSafe,
impl<T> Send for RunError<T>where
T: Send,
impl<T> Sync for RunError<T>where
T: Sync,
impl<T> Unpin for RunError<T>where
T: Unpin,
impl<T> UnwindSafe for RunError<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)