pub enum RulesError {
Parse(String),
Invalid {
rule: String,
reason: String,
},
NotFound(String),
Disabled(String),
Io(Error),
Store(StoreError),
}Variants§
Trait Implementations§
Source§impl Debug for RulesError
impl Debug for RulesError
Source§impl Display for RulesError
impl Display for RulesError
Source§impl Error for RulesError
impl Error for RulesError
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<Error> for RulesError
impl From<Error> for RulesError
Source§impl From<RulesError> for SyncError
impl From<RulesError> for SyncError
Source§fn from(source: RulesError) -> Self
fn from(source: RulesError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for RulesError
impl From<StoreError> for RulesError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RulesError
impl !UnwindSafe for RulesError
impl Freeze for RulesError
impl Send for RulesError
impl Sync for RulesError
impl Unpin for RulesError
impl UnsafeUnpin for RulesError
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