pub struct User {
pub occupant: Occupant,
pub session: SessionId,
pub channel: ChannelId,
pub scope: Scope,
pub name: String,
pub flags: UserFlags,
}Expand description
A user in the shared view, or in one connection’s overlay.
Fields§
§occupant: OccupantStable identity across renders.
session: SessionId§channel: ChannelIdThe channel the user is shown in. Must be visible wherever the user is.
scope: ScopePosition in the visibility tree. Extends the channel’s.
name: String§flags: UserFlagsTrait Implementations§
impl Eq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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