Enum twitch_irc::message::IRCParseError  
source · [−]pub enum IRCParseError {
    NoSpaceAfterTags,
    EmptyTagsDeclaration,
    NoSpaceAfterPrefix,
    EmptyPrefixDeclaration,
    MalformedCommand,
    TooManySpacesInMiddleParams,
    NewlinesInMessage,
}Expand description
Error while parsing a string into an IRCMessage.
Variants
NoSpaceAfterTags
No space found after tags (no command/prefix)
EmptyTagsDeclaration
No tags after @ sign
NoSpaceAfterPrefix
No space found after prefix (no command)
EmptyPrefixDeclaration
No tags after : sign
MalformedCommand
Expected command to only consist of alphabetic or numeric characters
TooManySpacesInMiddleParams
Expected only single spaces between middle parameters
NewlinesInMessage
Newlines are not permitted in raw IRC messages
Trait Implementations
sourceimpl Clone for IRCParseError
 
impl Clone for IRCParseError
sourcefn clone(&self) -> IRCParseError
 
fn clone(&self) -> IRCParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for IRCParseError
 
impl Debug for IRCParseError
sourceimpl Display for IRCParseError
 
impl Display for IRCParseError
sourceimpl Error for IRCParseError
 
impl Error for IRCParseError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<IRCParseError> for IRCParseError
 
impl PartialEq<IRCParseError> for IRCParseError
sourcefn eq(&self, other: &IRCParseError) -> bool
 
fn eq(&self, other: &IRCParseError) -> bool
impl Copy for IRCParseError
impl Eq for IRCParseError
impl StructuralEq for IRCParseError
impl StructuralPartialEq for IRCParseError
Auto Trait Implementations
impl RefUnwindSafe for IRCParseError
impl Send for IRCParseError
impl Sync for IRCParseError
impl Unpin for IRCParseError
impl UnwindSafe for IRCParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.