pub enum IrcMsgError<'msg> {
Tags(TagsError),
Source(SourceError),
Command(CommandError<'msg>),
Parameters(ParametersError),
NonUtf8Message,
EmptyInput,
}Expand description
The possible types of errors when parsing an IrcMsg.
Variants§
Tags(TagsError)
An error occurred in parsing the Tags.
Source(SourceError)
An error occurred in parsing the Source.
Command(CommandError<'msg>)
An error occurred in parsing the Command.
Parameters(ParametersError)
An error occurred in parsing the Parameters.
NonUtf8Message
A part of the message contains non-utf8 bytes.
EmptyInput
The byte slice input is empty.
Trait Implementations§
Source§impl<'msg> Clone for IrcMsgError<'msg>
impl<'msg> Clone for IrcMsgError<'msg>
Source§fn clone(&self) -> IrcMsgError<'msg>
fn clone(&self) -> IrcMsgError<'msg>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'msg> Debug for IrcMsgError<'msg>
impl<'msg> Debug for IrcMsgError<'msg>
Source§impl<'msg> PartialEq for IrcMsgError<'msg>
impl<'msg> PartialEq for IrcMsgError<'msg>
impl<'msg> Copy for IrcMsgError<'msg>
impl<'msg> Eq for IrcMsgError<'msg>
impl<'msg> StructuralPartialEq for IrcMsgError<'msg>
Auto Trait Implementations§
impl<'msg> Freeze for IrcMsgError<'msg>
impl<'msg> RefUnwindSafe for IrcMsgError<'msg>
impl<'msg> Send for IrcMsgError<'msg>
impl<'msg> Sync for IrcMsgError<'msg>
impl<'msg> Unpin for IrcMsgError<'msg>
impl<'msg> UnwindSafe for IrcMsgError<'msg>
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