pub struct PlayheadBehavior {
pub playback_speed: f64,
pub is_playing_backwards: bool,
}Expand description
Information a SampleResource can use to make optimal caching decisions
based on the behavior of the playhead.
Fields§
§playback_speed: f64The speed at which the playhead is moving. (Where 1.0 is playing at
the sample rate of this resource, 0.5 is playing at half the sample
rate of this resource, and 2.0 is playing at twice the speed of the
sample rate of this resource).
is_playing_backwards: boolTrue if playing backwards, false if playing forwards.
Trait Implementations§
Source§impl Clone for PlayheadBehavior
impl Clone for PlayheadBehavior
Source§fn clone(&self) -> PlayheadBehavior
fn clone(&self) -> PlayheadBehavior
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 PlayheadBehavior
impl Debug for PlayheadBehavior
Source§impl Default for PlayheadBehavior
impl Default for PlayheadBehavior
Source§impl PartialEq for PlayheadBehavior
impl PartialEq for PlayheadBehavior
impl Copy for PlayheadBehavior
impl StructuralPartialEq for PlayheadBehavior
Auto Trait Implementations§
impl Freeze for PlayheadBehavior
impl RefUnwindSafe for PlayheadBehavior
impl Send for PlayheadBehavior
impl Sync for PlayheadBehavior
impl Unpin for PlayheadBehavior
impl UnsafeUnpin for PlayheadBehavior
impl UnwindSafe for PlayheadBehavior
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