Enum twitch_irc::Error
source · pub enum Error<T: Transport, L: LoginCredentials> {
ConnectError(Arc<T::ConnectError>),
ConnectTimeout,
IncomingError(Arc<T::IncomingError>),
OutgoingError(Arc<T::OutgoingError>),
IRCParseError(IRCParseError),
LoginError(Arc<L::Error>),
ReconnectCmd,
PingTimeout,
RemoteUnexpectedlyClosedConnection,
}
Expand description
Errors that can occur while trying to execute some action on a TwitchIRCClient
.
Variants§
ConnectError(Arc<T::ConnectError>)
Underlying transport failed to connect
ConnectTimeout
Underlying transport failed to connect in time
IncomingError(Arc<T::IncomingError>)
Error received from incoming stream of messages
OutgoingError(Arc<T::OutgoingError>)
Error received while trying to send message(s) out
IRCParseError(IRCParseError)
Incoming message was not valid IRC
LoginError(Arc<L::Error>)
Failed to get login credentials to log in with
ReconnectCmd
Received RECONNECT command by IRC server
PingTimeout
Did not receive a PONG back after sending PING
RemoteUnexpectedlyClosedConnection
Remote server unexpectedly closed connection
Trait Implementations§
source§impl<T: Debug + Transport, L: Debug + LoginCredentials> Debug for Error<T, L>where
T::ConnectError: Debug,
T::IncomingError: Debug,
T::OutgoingError: Debug,
L::Error: Debug,
impl<T: Debug + Transport, L: Debug + LoginCredentials> Debug for Error<T, L>where T::ConnectError: Debug, T::IncomingError: Debug, T::OutgoingError: Debug, L::Error: Debug,
source§impl<T: Transport, L: LoginCredentials> Error for Error<T, L>where
Self: Debug + Display,
impl<T: Transport, L: LoginCredentials> Error for Error<T, L>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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, L> RefUnwindSafe for Error<T, L>where <T as Transport>::ConnectError: RefUnwindSafe, <L as LoginCredentials>::Error: RefUnwindSafe, <T as Transport>::IncomingError: RefUnwindSafe, <T as Transport>::OutgoingError: RefUnwindSafe,
impl<T, L> Send for Error<T, L>
impl<T, L> Sync for Error<T, L>
impl<T, L> Unpin for Error<T, L>
impl<T, L> UnwindSafe for Error<T, L>where <T as Transport>::ConnectError: RefUnwindSafe, <L as LoginCredentials>::Error: RefUnwindSafe, <T as Transport>::IncomingError: RefUnwindSafe, <T as Transport>::OutgoingError: RefUnwindSafe,
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