pub struct ProjectedRule {
pub status: Option<NativeStatus>,
pub covered_by: Option<CoveredBy>,
/* private fields */
}Expand description
A rule as one harness spells it.
Fields§
§status: Option<NativeStatus>None for *, which names no tool.
covered_by: Option<CoveredBy>The stricter rule (deny bash) that covers this one, so that it never applies: another
rule wins every call it would match, or every name it has on this harness.
Implementations§
Source§impl ProjectedRule
impl ProjectedRule
Sourcepub fn native_tools(&self) -> Vec<String>
pub fn native_tools(&self) -> Vec<String>
Unscoped harness tool names concerned by the surviving permission rules, each once.
Sourcepub fn overridden_by(&self) -> Option<&CoveredBy>
pub fn overridden_by(&self) -> Option<&CoveredBy>
The stricter rule that wins at least one native name this rule makes available.
Trait Implementations§
Source§impl Clone for ProjectedRule
impl Clone for ProjectedRule
Source§impl Debug for ProjectedRule
impl Debug for ProjectedRule
impl Eq for ProjectedRule
Source§impl PartialEq for ProjectedRule
impl PartialEq for ProjectedRule
impl StructuralPartialEq for ProjectedRule
Auto Trait Implementations§
impl Forget for ProjectedRule
impl Freeze for ProjectedRule
impl Move for ProjectedRule
impl RefUnwindSafe for ProjectedRule
impl Send for ProjectedRule
impl Sync for ProjectedRule
impl Unpin for ProjectedRule
impl UnsafeUnpin for ProjectedRule
impl UnwindSafe for ProjectedRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.