pub enum AwarenessEvent {
UserUpdated(UserPresenceInfo),
UserOffline(String),
CursorMoved(CursorInfo),
}Expand description
Events for presence changes.
Variants§
UserUpdated(UserPresenceInfo)
A user’s presence was updated.
UserOffline(String)
A user went offline.
CursorMoved(CursorInfo)
Cursor moved.
Trait Implementations§
Source§impl Clone for AwarenessEvent
impl Clone for AwarenessEvent
Source§fn clone(&self) -> AwarenessEvent
fn clone(&self) -> AwarenessEvent
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 moreAuto Trait Implementations§
impl Freeze for AwarenessEvent
impl RefUnwindSafe for AwarenessEvent
impl Send for AwarenessEvent
impl Sync for AwarenessEvent
impl Unpin for AwarenessEvent
impl UnsafeUnpin for AwarenessEvent
impl UnwindSafe for AwarenessEvent
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