pub struct TransportSnapshot {
pub playing: bool,
pub recording: bool,
pub looping: bool,
pub metronome: bool,
pub position_ticks: i64,
pub tempo_bpm: f64,
pub loop_start_ticks: i64,
pub loop_end_ticks: i64,
}Expand description
Snapshot of transport state for the UI to display. Cheap to copy.
Fields§
§playing: bool§recording: bool§looping: bool§metronome: bool§position_ticks: i64§tempo_bpm: f64§loop_start_ticks: i64§loop_end_ticks: i64Trait Implementations§
Source§impl Clone for TransportSnapshot
impl Clone for TransportSnapshot
Source§fn clone(&self) -> TransportSnapshot
fn clone(&self) -> TransportSnapshot
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 moreimpl Copy for TransportSnapshot
Auto Trait Implementations§
impl Freeze for TransportSnapshot
impl RefUnwindSafe for TransportSnapshot
impl Send for TransportSnapshot
impl Sync for TransportSnapshot
impl Unpin for TransportSnapshot
impl UnsafeUnpin for TransportSnapshot
impl UnwindSafe for TransportSnapshot
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