pub enum EnabledTools {
DenyList(HashSet<String>),
AllowList(HashSet<String>),
}Expand description
Tracks which tools are enabled.
DenyList: All tools enabled except those in the set (default)AllowList: Only tools in the set are enabled
Variants§
DenyList(HashSet<String>)
All tools enabled except those in the deny set.
AllowList(HashSet<String>)
Only tools in the allow set are enabled.
Implementations§
Source§impl EnabledTools
impl EnabledTools
Sourcepub fn is_enabled(&self, name: &str) -> bool
pub fn is_enabled(&self, name: &str) -> bool
Check if a tool is enabled.
Trait Implementations§
Source§impl Clone for EnabledTools
impl Clone for EnabledTools
Source§fn clone(&self) -> EnabledTools
fn clone(&self) -> EnabledTools
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnabledTools
impl Debug for EnabledTools
Auto Trait Implementations§
impl Freeze for EnabledTools
impl RefUnwindSafe for EnabledTools
impl Send for EnabledTools
impl Sync for EnabledTools
impl Unpin for EnabledTools
impl UnsafeUnpin for EnabledTools
impl UnwindSafe for EnabledTools
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