pub struct TransportSpec {
pub bpm: f64,
pub playing: bool,
pub position_beats: f64,
pub time_signature: (u8, u8),
}Expand description
Transport state visible to the plugin’s ProcessContext.
Fields§
§bpm: f64§playing: bool§position_beats: f64§time_signature: (u8, u8)Trait Implementations§
Source§impl Clone for TransportSpec
impl Clone for TransportSpec
Source§fn clone(&self) -> TransportSpec
fn clone(&self) -> TransportSpec
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 Default for TransportSpec
impl Default for TransportSpec
Source§fn default() -> TransportSpec
fn default() -> TransportSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportSpec
impl RefUnwindSafe for TransportSpec
impl Send for TransportSpec
impl Sync for TransportSpec
impl Unpin for TransportSpec
impl UnsafeUnpin for TransportSpec
impl UnwindSafe for TransportSpec
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