pub struct PlaybackState {
pub cursor: f32,
}Expand description
The internal playback state of an active sound.
This will be managed by the AudioMixingLane.
Fields§
§cursor: f32The current position in the sample data, in samples.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for PlaybackState
impl<'__de, __Context> BorrowDecode<'__de, __Context> for PlaybackState
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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 (const: unstable) · 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<__Context> Decode<__Context> for PlaybackState
impl<__Context> Decode<__Context> for PlaybackState
Source§impl<'de> Deserialize<'de> for PlaybackState
impl<'de> Deserialize<'de> for PlaybackState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for PlaybackState
impl Encode for PlaybackState
Source§impl PartialEq for PlaybackState
impl PartialEq for PlaybackState
Source§fn eq(&self, other: &PlaybackState) -> bool
fn eq(&self, other: &PlaybackState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlaybackState
impl Serialize 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 UnsafeUnpin 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