Struct permissions::Resolver
zaun_community_protocol::permissions::Resolver · Struct
pub struct Resolver<'a> { … }Per-member state computed once; then Resolver::community and Resolver::channel
are cheap enough to call for every channel of a snapshot.
Methods
Section titled “Methods”pub const fn base(&self) -> Permissionsbase(m) (steps 1–2), before any restriction; empty for a non-admitted member.
is_owner
Section titled “is_owner”pub const fn is_owner(&self) -> boolWhether the member is the owner.
is_admin
Section titled “is_admin”pub const fn is_admin(&self) -> boolWhether the member holds ADMINISTRATOR (and is admitted); false for the owner.
is_timed_out
Section titled “is_timed_out”pub const fn is_timed_out(&self) -> boolWhether step 7a applies (never to the owner or an administrator).
in_waiting_period
Section titled “in_waiting_period”pub const fn in_waiting_period(&self) -> boolWhether the admission policy’s waiting period still applies.
pub fn party(&self) -> PartyThe member as the management hierarchy sees it.
pub fn new(subject: Subject<'a>, ctx: &Context<'_>) -> SelfPhase one: the membership gate, base(m) and the member’s restriction masks.
community
Section titled “community”pub fn community(&self) -> Resolvedcommunity_permissions(m, ctx): cp(A) of the protocol
channel
Section titled “channel”pub fn channel(&self, ch: &Channel<'_>) -> Resolvedchannel_permissions(m, ch, ctx): chp(A, ch) of the protocol
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug