Enum mlounge_client::PlayerState
source · pub enum PlayerState {
Playing,
Paused(u64),
Stopped,
}Expand description
State of the player
Variants§
Implementations§
source§impl PlayerState
impl PlayerState
sourcepub fn disp_width(self) -> usize
pub fn disp_width(self) -> usize
How wide is the displayed state in terminal cells?
Trait Implementations§
source§impl Clone for PlayerState
impl Clone for PlayerState
source§fn clone(&self) -> PlayerState
fn clone(&self) -> PlayerState
Returns a copy 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 moresource§impl<'de> Deserialize<'de> for PlayerState
impl<'de> Deserialize<'de> for PlayerState
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PlayerState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PlayerState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PlayerState
impl Display for PlayerState
source§impl PartialEq for PlayerState
impl PartialEq for PlayerState
source§fn eq(&self, other: &PlayerState) -> bool
fn eq(&self, other: &PlayerState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PlayerState
impl Serialize for PlayerState
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PlayerState
impl Eq for PlayerState
impl StructuralEq for PlayerState
impl StructuralPartialEq for PlayerState
Auto Trait Implementations§
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnwindSafe for PlayerState
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.