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§
fn path(&self) -> &Path
Sourcefn append_allow(&self, rule: &str, matching: GrantMatch) -> Result<bool, String>
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".