#[repr(u32)]pub enum PlaybackState {
Playing = 0,
Sustaining = 1,
Stopped = 2,
Starting = 3,
Stopping = 4,
}
Available on crate feature
studio
only.Expand description
Playback state of various objects.
Variants§
Playing = 0
Playing.
Sustaining = 1
The timeline cursor is paused on a sustain point. (EventInstance
only.)
Stopped = 2
Stopped.
Starting = 3
Preparing to start.
Stopping = 4
Preparing to stop.
Trait Implementations§
Source§impl Clone for PlaybackState
impl Clone for PlaybackState
Source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
Returns a duplicate 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§impl TryFrom<u32> for PlaybackState
impl TryFrom<u32> for PlaybackState
Source§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
const NAME: &'static str = "PlaybackState"
type Primitive = u32
type Error = TryFromPrimitiveError<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