pub fn new() -> Self {
        trace!("creating new acl");
        let mut acl = Acl{
            resources:  BTreeMap::new(),
            roles:      BTreeMap::new(),
            rules:      HashMap::new(),
            lock:       None,
        }; // Acl

        acl.rules.insert(Query::ALL, Rule{acc: Access::Deny});
        acl
    }
/// Creates a new `Acl`. The `Acl` is unlocked by default. After you defined your rules you may
/// lock the `Acl` to speed up rule queries. At any point you can unlock the `Acl` and define
/// new rules. The methods `lock` and `unlock` require mutable access. But remember that
/// unlocking the `Acl` also purges the cache. In locked state you are still able to add roles,
/// resources and privileges.
Creates a new `Acl`. The `Acl` is unlocked by default. After you defined your rules you may
lock the `Acl` to speed up rule queries. At any point you can unlock the `Acl` and define
new rules. The methods `lock` and `unlock` require mutable access. But remember that
unlocking the `Acl` also purges the cache. In locked state you are still able to add roles,
resources and privileges.
Creates a new ` Acl ` . The ` Acl ` is unlocked by default . After you defined your rules you may lock the ` Acl ` to speed up rule queries . At any point you can unlock the ` Acl ` and define new rules . The methods ` lock ` and ` unlock ` require mutable access . But remember that unlocking the ` Acl ` also purges the cache . In locked state you are still able to add roles resources and privileges .
pub fn new() -> Self {
        trace!("creating new acl");
        let mut acl = Acl{
            resources:  BTreeMap::new(),
            roles:      BTreeMap::new(),
            rules:      HashMap::new(),
            lock:       None,
        }; // Acl
        acl.rules.insert(Query::ALL, Rule{acc: Access::Deny});
        acl
    }
pub fn new ( ) -> Self { trace ! ( " " ) ; let mut acl = Acl { resources : BTreeMap :: new ( ) , roles : BTreeMap :: new ( ) , rules : HashMap :: new ( ) , lock : None , } ; // Acl acl . rules . insert ( Query :: ALL , Rule { acc : Access :: Deny } ) ; acl }
Creates a new `Acl`.
Creates a new ` Acl ` .