pub struct Permissions(pub u32);Expand description
Application-defined permission bits. The first eight slots are pre-named to cover the common audio/text/role permissions; bits 8..32 are free for application use.
Tuple Fields§
§0: u32Implementations§
Source§impl Permissions
impl Permissions
Sourcepub const SEND_AUDIO: u32
pub const SEND_AUDIO: u32
Bit 1: may publish to audio streams (GAP).
Sourcepub const SEND_SIGNAL: u32
pub const SEND_SIGNAL: u32
Bit 2: may emit signals (GSP).
Sourcepub const MUTE_OTHERS: u32
pub const MUTE_OTHERS: u32
Bit 3: may mute / unmute other members.
Sourcepub const ASSIGN_ROLES: u32
pub const ASSIGN_ROLES: u32
Bit 4: may approve ROLE_CHANGE requests.
Sourcepub const REMOVE_MEMBERS: u32
pub const REMOVE_MEMBERS: u32
Bit 6: may remove members from the group.
Sourcepub const CLOSE_GROUP: u32
pub const CLOSE_GROUP: u32
Bit 7: may close / archive the group.
Trait Implementations§
Source§impl BitOr<u32> for Permissions
impl BitOr<u32> for Permissions
Source§impl Clone for Permissions
impl Clone for Permissions
Source§fn clone(&self) -> Permissions
fn clone(&self) -> Permissions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Permissions
Source§impl Debug for Permissions
impl Debug for Permissions
Source§impl Default for Permissions
impl Default for Permissions
Source§fn default() -> Permissions
fn default() -> Permissions
Returns the “default value” for a type. Read more
impl Eq for Permissions
Source§impl PartialEq for Permissions
impl PartialEq for Permissions
Source§fn eq(&self, other: &Permissions) -> bool
fn eq(&self, other: &Permissions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl Freeze for Permissions
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnsafeUnpin for Permissions
impl UnwindSafe for Permissions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more