Enum rust_tcp_ipc::ReadThreadErrors
source · pub enum ReadThreadErrors<P: Protocol> {
WriteError(Error),
ReadError(Error),
ImmediateMessageConstructError((P::Commands, Vec<u8>)),
Disconnected,
}
Expand description
The error type for operations in the asynchronous read thread
Variants
WriteError(Error)
This indicates that a immediate respond in the read-thread failed
ReadError(Error)
This indicates that the read-thread failed to receive a message
ImmediateMessageConstructError((P::Commands, Vec<u8>))
This indicates that the read-thread failed to construct a message. This typically happens if the protocol implementation has a flaw.
Disconnected
This happens if the read-thread is disconnected from the server.
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for ReadThreadErrors<P>
impl<P> Send for ReadThreadErrors<P>
impl<P> Sync for ReadThreadErrors<P>
impl<P> Unpin for ReadThreadErrors<P>where
<P as Protocol>::Commands: Unpin,
impl<P> !UnwindSafe for ReadThreadErrors<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more