Skip to main content

AccessControlPort

Trait AccessControlPort 

Source
pub trait AccessControlPort: Send + Sync {
    // Required methods
    fn check_access(&self, channel: &str, sender_id: &str) -> AccessDecision;
    fn policies(&self) -> &[ChannelAccessPolicy];
}
Expand description

Port for channel-level access control decisions.

Required Methods§

Source

fn check_access(&self, channel: &str, sender_id: &str) -> AccessDecision

Check whether a sender is allowed on a channel.

Source

fn policies(&self) -> &[ChannelAccessPolicy]

List all configured policies.

Implementors§