pub struct Resolver<'a> { /* private fields */ }Expand description
Per-member state computed once; then Resolver::community and Resolver::channel
are cheap enough to call for every channel of a snapshot.
Implementations§
Source§impl Resolver<'_>
impl Resolver<'_>
Sourcepub const fn base(&self) -> Permissions
pub const fn base(&self) -> Permissions
base(m) (steps 1–2), before any restriction; empty for a non-admitted member.
Sourcepub const fn is_admin(&self) -> bool
pub const fn is_admin(&self) -> bool
Whether the member holds ADMINISTRATOR (and is admitted); false for the owner.
Sourcepub const fn is_timed_out(&self) -> bool
pub const fn is_timed_out(&self) -> bool
Whether step 7a applies (never to the owner or an administrator).
Sourcepub const fn in_waiting_period(&self) -> bool
pub const fn in_waiting_period(&self) -> bool
Whether the admission policy’s waiting period still applies.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Resolver<'a>
impl<'a> RefUnwindSafe for Resolver<'a>
impl<'a> Send for Resolver<'a>
impl<'a> Sync for Resolver<'a>
impl<'a> Unpin for Resolver<'a>
impl<'a> UnsafeUnpin for Resolver<'a>
impl<'a> UnwindSafe for Resolver<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more