[−][src]Enum twitch_irc::message::ServerMessageParseError
Errors encountered while trying to parse an IRC message as a more specialized "server message", based on its IRC command.
Variants
MismatchedCommand(IRCMessage)That command's data is not parsed by this implementation
This type of error is only returned if you use try_from directly on a special
server message implementation, instead of the general ServerMessage::try_from
which covers all implementations and does not emit this type of error.
MissingTag(IRCMessage, &'static str)No tag present under key key
MissingTagValue(IRCMessage, &'static str)No tag value present under key key
MalformedTagValue(IRCMessage, &'static str, String)Malformed tag value for tag key, value was value
MissingParameter(IRCMessage, usize)No parameter found at index n
MalformedChannel(IRCMessage)Malformed channel parameter (# must be present + something after it)
MalformedParameter(IRCMessage, usize)Malformed parameter at index n
MissingPrefix(IRCMessage)Missing prefix altogether
MissingNickname(IRCMessage)No nickname found in prefix
Trait Implementations
impl Debug for ServerMessageParseError[src]
impl Display for ServerMessageParseError[src]
impl Error for ServerMessageParseError[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>[src]
fn description(&self) -> &str1.0.0[src]
fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<ServerMessageParseError> for IRCMessage[src]
fn from(msg: ServerMessageParseError) -> IRCMessage[src]
impl PartialEq<ServerMessageParseError> for ServerMessageParseError[src]
fn eq(&self, other: &ServerMessageParseError) -> bool[src]
fn ne(&self, other: &ServerMessageParseError) -> bool[src]
impl StructuralPartialEq for ServerMessageParseError[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerMessageParseError
impl Send for ServerMessageParseError
impl Sync for ServerMessageParseError
impl Unpin for ServerMessageParseError
impl UnwindSafe for ServerMessageParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,