Skip to content

Function permissions::gate

zaun_community_protocol::permissions::gate · Function

pub fn gate(state: MembershipState, command: &str) -> Result<(), GateDenial>

The gate for a connection bound to a member in state. Probation and Active pass every bound command, which is then subject to its permissions.

Full rustdoc page