pub enum PutStateReason {
UNKNOWN_PUT_STATE_REASON = 0,
SPIRC_HELLO = 1,
SPIRC_NOTIFY = 2,
NEW_DEVICE = 3,
PLAYER_STATE_CHANGED = 4,
VOLUME_CHANGED = 5,
PICKER_OPENED = 6,
BECAME_INACTIVE = 7,
ALIAS_CHANGED = 8,
}
Variants§
UNKNOWN_PUT_STATE_REASON = 0
SPIRC_HELLO = 1
SPIRC_NOTIFY = 2
NEW_DEVICE = 3
PLAYER_STATE_CHANGED = 4
VOLUME_CHANGED = 5
PICKER_OPENED = 6
BECAME_INACTIVE = 7
ALIAS_CHANGED = 8
Trait Implementations§
source§impl Clone for PutStateReason
impl Clone for PutStateReason
source§fn clone(&self) -> PutStateReason
fn clone(&self) -> PutStateReason
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 Debug for PutStateReason
impl Debug for PutStateReason
source§impl Default for PutStateReason
impl Default for PutStateReason
source§impl Enum for PutStateReason
impl Enum for PutStateReason
source§fn from_i32(value: i32) -> Option<PutStateReason>
fn from_i32(value: i32) -> Option<PutStateReason>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<PutStateReason>
fn from_str(str: &str) -> Option<PutStateReason>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [PutStateReason] = _
const VALUES: &'static [PutStateReason] = _
All enum values for enum type.
source§impl EnumFull for PutStateReason
impl EnumFull for PutStateReason
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for PutStateReason
impl Hash for PutStateReason
source§impl PartialEq for PutStateReason
impl PartialEq for PutStateReason
source§fn eq(&self, other: &PutStateReason) -> bool
fn eq(&self, other: &PutStateReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PutStateReason
impl Eq for PutStateReason
impl StructuralEq for PutStateReason
impl StructuralPartialEq for PutStateReason
Auto Trait Implementations§
impl RefUnwindSafe for PutStateReason
impl Send for PutStateReason
impl Sync for PutStateReason
impl Unpin for PutStateReason
impl UnwindSafe for PutStateReason
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