#[non_exhaustive]pub enum AddRulesError {
Fs(AddRuleError<AccessFs>),
Net(AddRuleError<AccessNet>),
}
Expand description
Identifies errors when adding rules to a ruleset thanks to an iterator returning Result<Rule, E> items.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fs(AddRuleError<AccessFs>)
Net(AddRuleError<AccessNet>)
Trait Implementations§
source§impl Debug for AddRulesError
impl Debug for AddRulesError
source§impl Display for AddRulesError
impl Display for AddRulesError
source§impl Error for AddRulesError
impl Error for AddRulesError
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<A> From<AddRuleError<A>> for AddRulesErrorwhere
A: Access,
impl<A> From<AddRuleError<A>> for AddRulesErrorwhere
A: Access,
source§fn from(error: AddRuleError<A>) -> Self
fn from(error: AddRuleError<A>) -> Self
Converts to this type from the input type.
source§impl From<AddRulesError> for RulesetError
impl From<AddRulesError> for RulesetError
source§fn from(source: AddRulesError) -> Self
fn from(source: AddRulesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddRulesError
impl !RefUnwindSafe for AddRulesError
impl Send for AddRulesError
impl Sync for AddRulesError
impl Unpin for AddRulesError
impl !UnwindSafe for AddRulesError
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