Enum fmod::studio::PlaybackState
source · #[repr(u32)]pub enum PlaybackState {
Playing = 0,
Sustaining = 1,
Stopped = 2,
Starting = 3,
Stopping = 4,
}Variants§
Trait Implementations§
source§impl Clone for PlaybackState
impl Clone for PlaybackState
source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
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 PlaybackState
impl Debug for PlaybackState
source§impl From<PlaybackState> for u32
impl From<PlaybackState> for u32
source§fn from(enum_value: PlaybackState) -> Self
fn from(enum_value: PlaybackState) -> Self
Converts to this type from the input type.
source§impl PartialEq for PlaybackState
impl PartialEq for PlaybackState
source§fn eq(&self, other: &PlaybackState) -> bool
fn eq(&self, other: &PlaybackState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for PlaybackState
impl TryFrom<u32> for PlaybackState
§type Error = TryFromPrimitiveError<PlaybackState>
type Error = TryFromPrimitiveError<PlaybackState>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for PlaybackState
impl TryFromPrimitive for PlaybackState
type Primitive = u32
type Error = TryFromPrimitiveError<PlaybackState>
const NAME: &'static str = "PlaybackState"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
source§impl UnsafeFromPrimitive for PlaybackState
impl UnsafeFromPrimitive for PlaybackState
type Primitive = u32
source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from, from_unchecked will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for PlaybackState
impl Eq for PlaybackState
impl StructuralPartialEq for PlaybackState
Auto Trait Implementations§
impl Freeze for PlaybackState
impl RefUnwindSafe for PlaybackState
impl Send for PlaybackState
impl Sync for PlaybackState
impl Unpin for PlaybackState
impl UnwindSafe for PlaybackState
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