Skip to main content

Conditions

Trait Conditions 

Source
pub trait Conditions: Send + Sync {
    // Required method
    fn holds(&self, condition: &str, item: &str, person: &Person) -> Truth;
}
Expand description

Decides an entry’s condition, in whatever language the consumer writes them in: a NetBox-style constraint checked against its database, a Windows conditional expression, a time window.

With no Conditions given, or nobody signed in, every condition is Truth::Unknown.

Required Methods§

Source

fn holds(&self, condition: &str, item: &str, person: &Person) -> Truth

What condition, on an entry of item’s ACL, comes to for person.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§