pub enum TopicHandshakeError<T> {
UnexpectedMessage(TopicHandshakeMessage<T>),
UnexpectedStreamClosure,
MessageSink(String),
MessageStream(String),
MpscSend(SendError),
}Expand description
Protocol error types.
Variants§
UnexpectedMessage(TopicHandshakeMessage<T>)
UnexpectedStreamClosure
MessageSink(String)
MessageStream(String)
MpscSend(SendError)
Trait Implementations§
Source§impl<T: Clone> Clone for TopicHandshakeError<T>
impl<T: Clone> Clone for TopicHandshakeError<T>
Source§fn clone(&self) -> TopicHandshakeError<T>
fn clone(&self) -> TopicHandshakeError<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TopicHandshakeError<T>
impl<T: Debug> Debug for TopicHandshakeError<T>
Source§impl<T> Display for TopicHandshakeError<T>where
TopicHandshakeMessage<T>: Display,
impl<T> Display for TopicHandshakeError<T>where
TopicHandshakeMessage<T>: Display,
Source§impl<T: Debug> Display for TopicHandshakeError<T>
impl<T: Debug> Display for TopicHandshakeError<T>
Source§impl<T> Error for TopicHandshakeError<T>
impl<T> Error for TopicHandshakeError<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 TopicHandshakeError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TopicHandshakeError<T>where
T: RefUnwindSafe,
impl<T> Send for TopicHandshakeError<T>where
T: Send,
impl<T> Sync for TopicHandshakeError<T>where
T: Sync,
impl<T> Unpin for TopicHandshakeError<T>where
T: Unpin,
impl<T> UnwindSafe for TopicHandshakeError<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