pub enum Occupant {
Connection(ConnectionId),
Synthetic(SyntheticId),
}Expand description
Who occupies a rendered user slot.
This is the user’s identity, which is why - unlike channels - users need no separate key.
Variants§
Connection(ConnectionId)
A player actually connected.
Synthetic(SyntheticId)
A visible user with no voice connection.
Implementations§
Source§impl Occupant
impl Occupant
Sourcepub fn connection(self) -> Option<ConnectionId>
pub fn connection(self) -> Option<ConnectionId>
The connection behind this occupant, if any.
Trait Implementations§
Source§impl Ord for Occupant
impl Ord for Occupant
Source§impl PartialOrd for Occupant
impl PartialOrd for Occupant
impl Copy for Occupant
impl Eq for Occupant
impl StructuralPartialEq for Occupant
Auto Trait Implementations§
impl Freeze for Occupant
impl RefUnwindSafe for Occupant
impl Send for Occupant
impl Sync for Occupant
impl Unpin for Occupant
impl UnwindSafe for Occupant
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