Enum PlayerState
#[repr(i32)]pub enum PlayerState {
Stopped = 0,
Playing = 1,
Paused = 2,
Loading = 3,
}Variants§
Implementations§
§impl PlayerState
impl PlayerState
§impl PlayerState
impl PlayerState
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<PlayerState>
pub fn from_str_name(value: &str) -> Option<PlayerState>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for PlayerState
impl Clone for PlayerState
§fn clone(&self) -> PlayerState
fn clone(&self) -> PlayerState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PlayerState
impl Debug for PlayerState
§impl Default for PlayerState
impl Default for PlayerState
§fn default() -> PlayerState
fn default() -> PlayerState
Returns the “default value” for a type. Read more
Source§impl Extract<PlayerState> for GetPlayerStateResponse
impl Extract<PlayerState> for GetPlayerStateResponse
fn extract(self) -> PlayerState
§impl Hash for PlayerState
impl Hash for PlayerState
§impl Ord for PlayerState
impl Ord for PlayerState
§impl PartialEq for PlayerState
impl PartialEq for PlayerState
§impl PartialOrd for PlayerState
impl PartialOrd for PlayerState
§impl TryFrom<i32> for PlayerState
impl TryFrom<i32> for PlayerState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<PlayerState, UnknownEnumValue>
fn try_from(value: i32) -> Result<PlayerState, UnknownEnumValue>
Performs the conversion.
impl Copy for PlayerState
impl Eq for PlayerState
impl StructuralPartialEq for PlayerState
Auto Trait Implementations§
impl Freeze for PlayerState
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnwindSafe for PlayerState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)