pub struct SessionActiveClientChangedAction {
pub active_client: Option<SessionActiveClient>,
}Expand description
The active client for this session has changed.
A client dispatches this action with its own SessionActiveClient to claim
the active role, or with null to release it. The server SHOULD reject if
another client is already active. The server SHOULD automatically dispatch
this action with activeClient: null when the active client disconnects.
Fields§
§active_client: Option<SessionActiveClient>The new active client, or null to unset
Trait Implementations§
Source§impl Clone for SessionActiveClientChangedAction
impl Clone for SessionActiveClientChangedAction
Source§fn clone(&self) -> SessionActiveClientChangedAction
fn clone(&self) -> SessionActiveClientChangedAction
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 Default for SessionActiveClientChangedAction
impl Default for SessionActiveClientChangedAction
Source§fn default() -> SessionActiveClientChangedAction
fn default() -> SessionActiveClientChangedAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionActiveClientChangedAction
impl<'de> Deserialize<'de> for SessionActiveClientChangedAction
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 SessionActiveClientChangedAction
impl PartialEq for SessionActiveClientChangedAction
Source§fn eq(&self, other: &SessionActiveClientChangedAction) -> bool
fn eq(&self, other: &SessionActiveClientChangedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionActiveClientChangedAction
Auto Trait Implementations§
impl Freeze for SessionActiveClientChangedAction
impl RefUnwindSafe for SessionActiveClientChangedAction
impl Send for SessionActiveClientChangedAction
impl Sync for SessionActiveClientChangedAction
impl Unpin for SessionActiveClientChangedAction
impl UnsafeUnpin for SessionActiveClientChangedAction
impl UnwindSafe for SessionActiveClientChangedAction
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