pub fn check_policy(&self, condition: PolicyCondition) -> ZxResult {
        match self
            .policy
            .get_action(condition)
            .unwrap_or(PolicyAction::Allow)
        {
            PolicyAction::Allow => Ok(()),
            PolicyAction::Deny => Err(ZxError::ACCESS_DENIED),
            _ => unimplemented!(),
        }
    }
/// Check whether `condition` is allowed in the parent job's policy.
Check whether `condition` is allowed in the parent job's policy.
Check whether ` condition ` is allowed in the parent job ' s policy .
pub fn check_policy(&self, condition: PolicyCondition) -> ZxResult {
        match self
            .policy
            .get_action(condition)
            .unwrap_or(PolicyAction::Allow)
        {
            PolicyAction::Allow => Ok(()),
            PolicyAction::Deny => Err(ZxError::ACCESS_DENIED),
            _ => unimplemented!(),
        }
    }
pub fn check_policy ( & self , condition : PolicyCondition ) -> ZxResult { match self . policy . get_action ( condition ) . unwrap_or ( PolicyAction :: Allow ) { PolicyAction :: Allow => Ok ( ( ) ) , PolicyAction :: Deny => Err ( ZxError :: ACCESS_DENIED ) , _ => unimplemented ! ( ) , } }
Check whether `condition` is allowed in the parent job's policy.
Check whether ` condition ` is allowed in the parent job ' s policy .
&self
condition
PolicyCondition
&self
condition
PolicyCondition