pub enum MaskerError {
InvalidConfig(String),
Regex(Error),
Aho(BuildError),
}Expand description
All errors surfaced by maskprompt-core.
Variants§
InvalidConfig(String)
Caller supplied an invalid configuration.
Regex(Error)
A regex failed to compile. Should not happen at runtime; built-in patterns are tested. Surfaces if a future caller adds custom regex.
Aho(BuildError)
Aho-Corasick build failure.
Trait Implementations§
Source§impl Debug for MaskerError
impl Debug for MaskerError
Source§impl Display for MaskerError
impl Display for MaskerError
Source§impl Error for MaskerError
impl Error for MaskerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<BuildError> for MaskerError
impl From<BuildError> for MaskerError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MaskerError
impl RefUnwindSafe for MaskerError
impl Send for MaskerError
impl Sync for MaskerError
impl Unpin for MaskerError
impl UnsafeUnpin for MaskerError
impl UnwindSafe for MaskerError
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