Skip to main content

RuleFile

Trait RuleFile 

Source
pub trait RuleFile:
    Send
    + Sync
    + Debug {
    // Required methods
    fn path(&self) -> &Path;
    fn append_allow(
        &self,
        rule: &str,
        matching: GrantMatch,
    ) -> Result<bool, String>;
}
Expand description

The file a project-scoped “allow every time” is written to.

Required Methods§

Source

fn path(&self) -> &Path

Source

fn append_allow(&self, rule: &str, matching: GrantMatch) -> Result<bool, String>

Add rule as an allow. Ok(false) when it was already there.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§