pub struct Context<'a> {
pub now_ms: u64,
pub everyone: Permissions,
pub newcomer_restrictions: Permissions,
pub waiting_period_ms: u64,
pub lockdown: Option<&'a Lockdown>,
}Expand description
Community-wide inputs shared by every resolution in one request.
Fields§
§now_ms: u64The current time in ms since the epoch.
everyone: PermissionsThe @everyone role’s permissions.
newcomer_restrictions: PermissionsThe admission policy’s newcomer_restrictions (step 7b).
waiting_period_ms: u64The admission policy’s waiting_period_s, in ms (specification §6.4).
lockdown: Option<&'a Lockdown>The community’s lockdown row, if any; ignored once expired.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'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