pub struct SecurityPolicies<N: Node> { /* private fields */ }Expand description
All of the security policies available for use, indexed by name. One of these policies may be in force (or “active”).
Implementations§
Source§impl<N: Node> SecurityPolicies<N>
impl<N: Node> SecurityPolicies<N>
Sourcepub fn activate(&mut self, name: &QName) -> Option<&Policy<N>>
pub fn activate(&mut self, name: &QName) -> Option<&Policy<N>>
Make the named security policy the “in force” (or “active”) policy.
Sourcepub fn get(
&self,
f: &QName,
a: ActualParameters<N>,
) -> Result<SecurityResult, Error>
pub fn get( &self, f: &QName, a: ActualParameters<N>, ) -> Result<SecurityResult, Error>
Determine whether a feature, in the in-force policy, is permitted. All parameters must be named, i.e. positional parameters are ignored.
Trait Implementations§
Auto Trait Implementations§
impl<N> !Send for SecurityPolicies<N>
impl<N> !Sync for SecurityPolicies<N>
impl<N> Freeze for SecurityPolicies<N>
impl<N> RefUnwindSafe for SecurityPolicies<N>where
N: RefUnwindSafe,
impl<N> Unpin for SecurityPolicies<N>where
N: Unpin,
impl<N> UnsafeUnpin for SecurityPolicies<N>
impl<N> UnwindSafe for SecurityPolicies<N>where
N: UnwindSafe,
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