pub struct SessionActiveClientSetAction {
pub active_client: SessionActiveClient,
}Expand description
An active client for this session was added or updated.
Upsert semantics keyed by {@link SessionActiveClient.clientId | clientId}:
a client dispatches this action with its own SessionActiveClient to join
the session’s active clients or refresh its entry, replacing any existing
entry that has the same clientId. Multiple clients may be active at once.
This is also how a client updates its published tools or customizations —
re-dispatch with the full, updated entry. Use
{@link SessionActiveClientRemovedAction | session/activeClientRemoved} to
leave. The server SHOULD automatically dispatch that removal when an active
client disconnects.
Fields§
§active_client: SessionActiveClientThe active client to add or update, matched by clientId.
Trait Implementations§
Source§impl Clone for SessionActiveClientSetAction
impl Clone for SessionActiveClientSetAction
Source§fn clone(&self) -> SessionActiveClientSetAction
fn clone(&self) -> SessionActiveClientSetAction
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 moreSource§impl Debug for SessionActiveClientSetAction
impl Debug for SessionActiveClientSetAction
Source§impl<'de> Deserialize<'de> for SessionActiveClientSetAction
impl<'de> Deserialize<'de> for SessionActiveClientSetAction
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 SessionActiveClientSetAction
impl PartialEq for SessionActiveClientSetAction
Source§fn eq(&self, other: &SessionActiveClientSetAction) -> bool
fn eq(&self, other: &SessionActiveClientSetAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionActiveClientSetAction
Auto Trait Implementations§
impl Freeze for SessionActiveClientSetAction
impl RefUnwindSafe for SessionActiveClientSetAction
impl Send for SessionActiveClientSetAction
impl Sync for SessionActiveClientSetAction
impl Unpin for SessionActiveClientSetAction
impl UnsafeUnpin for SessionActiveClientSetAction
impl UnwindSafe for SessionActiveClientSetAction
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