pub trait AccessControl {
    // Required method
    fn check_access(
        &self,
        this_ae_title: &str,
        calling_ae_title: &str,
        called_ae_title: &str,
        user_identity: Option<&UserIdentity>,
    ) -> Result<(), AssociationRJServiceUserReason>;
}Expand description
Common interface for application entity access control policies.
Existing implementations include AcceptAny and AcceptCalledAeTitle,
but users are free to implement their own.
Required Methods§
Sourcefn check_access(
    &self,
    this_ae_title: &str,
    calling_ae_title: &str,
    called_ae_title: &str,
    user_identity: Option<&UserIdentity>,
) -> Result<(), AssociationRJServiceUserReason>
 
fn check_access( &self, this_ae_title: &str, calling_ae_title: &str, called_ae_title: &str, user_identity: Option<&UserIdentity>, ) -> Result<(), AssociationRJServiceUserReason>
Obtain the decision of whether to accept an incoming association request based on the recorded application entity titles and/or user identity.
Returns Ok(()) if the requester node should be given clearance. Otherwise, a concrete association RJ service user reason is given.