pub enum TransportAction {
Play,
Pause,
TogglePlay,
Tick {
dt_ms: u32,
},
Seek {
frame: u64,
},
Step {
delta: i64,
},
SetRate {
rate: f32,
},
SetInOut {
a: u64,
b: u64,
},
ClearInOut,
SetLooping {
looping: bool,
},
SetDuration {
frames: u64,
},
Status,
}Expand description
A transport command from the UI. Enum-dispatched through the single
editor_transport command so registration stays a one-liner.
Variants§
Play
Start advancing.
Pause
Stop advancing.
TogglePlay
Toggle play/pause.
Tick
Advance the clock by dt_ms milliseconds (the UI’s per-frame tick).
Seek
Seek to an exact frame.
Step
Step delta frames (negative = back) and pause.
SetRate
Set the playback rate.
SetInOut
Set the in/out points (order-independent).
ClearInOut
Clear the in/out points to the full project.
SetLooping
Enable/disable looping.
SetDuration
Update the project length after an edit changed it (ED.11 ripple / trim) so the clock’s range tracks the new timeline.
Status
No-op — just read the current status.
Trait Implementations§
Source§impl Clone for TransportAction
impl Clone for TransportAction
Source§fn clone(&self) -> TransportAction
fn clone(&self) -> TransportAction
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 TransportAction
impl Debug for TransportAction
Source§impl<'de> Deserialize<'de> for TransportAction
impl<'de> Deserialize<'de> for TransportAction
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 PartialEq for TransportAction
impl PartialEq for TransportAction
Source§fn eq(&self, other: &TransportAction) -> bool
fn eq(&self, other: &TransportAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransportAction
impl StructuralPartialEq for TransportAction
Auto Trait Implementations§
impl Freeze for TransportAction
impl RefUnwindSafe for TransportAction
impl Send for TransportAction
impl Sync for TransportAction
impl Unpin for TransportAction
impl UnsafeUnpin for TransportAction
impl UnwindSafe for TransportAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more