pub struct ClientState {
pub available: bool,
pub player: Option<PlayerState>,
}Expand description
client/state: client availability plus the state of each active role.
A role object that is absent keeps its previous state.
Fields§
§available: boolWhether the client is available to take part in playback.
player: Option<PlayerState>Player state; present exactly when the player role is active.
Trait Implementations§
Source§impl Clone for ClientState
impl Clone for ClientState
Source§impl Debug for ClientState
impl Debug for ClientState
Source§impl<'de> Deserialize<'de> for ClientState
impl<'de> Deserialize<'de> for ClientState
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
impl Eq for ClientState
Source§impl PartialEq for ClientState
impl PartialEq for ClientState
Source§impl Serialize for ClientState
impl Serialize for ClientState
impl StructuralPartialEq for ClientState
Auto Trait Implementations§
impl Forget for ClientState
impl Freeze for ClientState
impl Move for ClientState
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnsafeUnpin for ClientState
impl UnwindSafe for ClientState
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