pub enum ProtocolConnectorError<ConnectError, ProtocolError> {
ConnectFailed(ConnectError),
ConnectionLost,
ProtocolError(ProtocolError),
}
Expand description
Errors encountered while connecting to or sending messages to the ConnectedProtocol implementation.
Variants§
ConnectFailed(ConnectError)
Connecting to the protocol failed for some reason.
ConnectionLost
Connection to the protocol was dropped. A reconnect will be triggered.
ProtocolError(ProtocolError)
The protocol returned an error while sending a message.
Trait Implementations§
Source§impl<ConnectError: Debug, ProtocolError: Debug> Debug for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError: Debug, ProtocolError: Debug> Debug for ProtocolConnectorError<ConnectError, ProtocolError>
Source§impl<ConnectError: PartialEq, ProtocolError: PartialEq> PartialEq for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError: PartialEq, ProtocolError: PartialEq> PartialEq for ProtocolConnectorError<ConnectError, ProtocolError>
Source§fn eq(
&self,
other: &ProtocolConnectorError<ConnectError, ProtocolError>,
) -> bool
fn eq( &self, other: &ProtocolConnectorError<ConnectError, ProtocolError>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<ConnectError: Eq, ProtocolError: Eq> Eq for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError, ProtocolError> StructuralPartialEq for ProtocolConnectorError<ConnectError, ProtocolError>
Auto Trait Implementations§
impl<ConnectError, ProtocolError> Freeze for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError, ProtocolError> RefUnwindSafe for ProtocolConnectorError<ConnectError, ProtocolError>where
ConnectError: RefUnwindSafe,
ProtocolError: RefUnwindSafe,
impl<ConnectError, ProtocolError> Send for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError, ProtocolError> Sync for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError, ProtocolError> Unpin for ProtocolConnectorError<ConnectError, ProtocolError>
impl<ConnectError, ProtocolError> UnwindSafe for ProtocolConnectorError<ConnectError, ProtocolError>where
ConnectError: UnwindSafe,
ProtocolError: 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