pub enum WeechatError {
NewlineInArgument,
IOError(Error),
ParserError(ParseMessageError<Error<Vec<u8>>>),
UnexpectedResponse(String),
FailedHandshake,
}Variants§
NewlineInArgument
The client attempted to send an argument with a newline in an unescaped connection.
IOError(Error)
An IO error on the TCP stream.
ParserError(ParseMessageError<Error<Vec<u8>>>)
An error was encountered in the structure of incoming messages.
UnexpectedResponse(String)
The server returned a valid message, but not one we expected.
FailedHandshake
The handshake failed to negotiate viable parameters.
Trait Implementations§
Source§impl Debug for WeechatError
impl Debug for WeechatError
Source§impl Display for WeechatError
impl Display for WeechatError
Source§impl Error for WeechatError
impl Error for WeechatError
1.30.0 · 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()
Source§impl From<Error> for WeechatError
impl From<Error> for WeechatError
Source§impl From<FromUtf8Error> for WeechatError
impl From<FromUtf8Error> for WeechatError
Source§fn from(_error: FromUtf8Error) -> Self
fn from(_error: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseMessageError<Error<Vec<u8>>>> for WeechatError
impl From<ParseMessageError<Error<Vec<u8>>>> for WeechatError
Auto Trait Implementations§
impl Freeze for WeechatError
impl !RefUnwindSafe for WeechatError
impl Send for WeechatError
impl Sync for WeechatError
impl Unpin for WeechatError
impl !UnwindSafe for WeechatError
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