Enum twitch_irc::validate::Error  
source · [−]pub enum Error {
    InvalidCharacter {
        login: String,
        position: usize,
        character: char,
    },
    TooLong {
        login: String,
    },
    TooShort {
        login: String,
    },
}Expand description
Types of errors that can be found as a result of validating a channel login name. See the enum variants for details
Variants
InvalidCharacter
Fields
login: StringThe login name that failed validation.
position: usizeIndex of the found invalid character in the original string
character: charThe invalid character
A character not allowed in login names was found at a certain position in the given string
TooLong
Fields
login: StringThe login name that failed validation.
Login name exceeds maximum length of 25 characters
TooShort
Fields
login: StringThe login name that failed validation.
Login name is too short (must be at least one character long)
Trait Implementations
sourceimpl Error for Error
 
impl Error for Error
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()
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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.