pub enum RoomAccessPolicy {
Open,
Permission(PermissionString),
InviteOnly,
Locked,
}Expand description
Access control policy for the room.
Variants§
Open
Anyone can enter.
Permission(PermissionString)
Only clients holding the specified PermissionString token can enter.
The token is replicated verbatim in the wire format and is guaranteed
not to exceed MAX_ROOM_STRING_BYTES bytes.
InviteOnly
Only explicitly invited clients can enter.
Locked
Locked — no one can enter.
Trait Implementations§
Source§impl Clone for RoomAccessPolicy
impl Clone for RoomAccessPolicy
Source§fn clone(&self) -> RoomAccessPolicy
fn clone(&self) -> RoomAccessPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoomAccessPolicy
impl Debug for RoomAccessPolicy
Source§impl<'de> Deserialize<'de> for RoomAccessPolicy
impl<'de> Deserialize<'de> for RoomAccessPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RoomAccessPolicy
impl PartialEq for RoomAccessPolicy
Source§impl Serialize for RoomAccessPolicy
impl Serialize for RoomAccessPolicy
impl Eq for RoomAccessPolicy
impl StructuralPartialEq for RoomAccessPolicy
Auto Trait Implementations§
impl Freeze for RoomAccessPolicy
impl RefUnwindSafe for RoomAccessPolicy
impl Send for RoomAccessPolicy
impl Sync for RoomAccessPolicy
impl Unpin for RoomAccessPolicy
impl UnsafeUnpin for RoomAccessPolicy
impl UnwindSafe for RoomAccessPolicy
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