pub enum UserAgentParserError {
ScanError(ScanError),
IOError(Error),
RegexError(Error),
IncorrectSource,
}
Expand description
Possible errors of UserAgentParser
.
Variants§
Trait Implementations§
source§impl Debug for UserAgentParserError
impl Debug for UserAgentParserError
source§impl Display for UserAgentParserError
impl Display for UserAgentParserError
source§impl Error for UserAgentParserError
impl Error for UserAgentParserError
1.30.0 · source§fn 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 · 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 UserAgentParserError
impl From<Error> for UserAgentParserError
source§fn from(error: IOError) -> UserAgentParserError
fn from(error: IOError) -> UserAgentParserError
Converts to this type from the input type.
source§impl From<Error> for UserAgentParserError
impl From<Error> for UserAgentParserError
source§fn from(error: RegexError) -> UserAgentParserError
fn from(error: RegexError) -> UserAgentParserError
Converts to this type from the input type.
source§impl From<ScanError> for UserAgentParserError
impl From<ScanError> for UserAgentParserError
source§fn from(error: ScanError) -> UserAgentParserError
fn from(error: ScanError) -> UserAgentParserError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UserAgentParserError
impl Send for UserAgentParserError
impl Sync for UserAgentParserError
impl Unpin for UserAgentParserError
impl !UnwindSafe for UserAgentParserError
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