pub struct Action { /* private fields */ }Expand description
Represents an action that can be run on a node.
Implementations§
Source§impl Action
impl Action
Sourcepub fn get_duration(&self) -> f32
pub fn get_duration(&self) -> f32
Gets the duration of the action.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Gets whether the action is currently running.
Sourcepub fn set_reversed(&mut self, val: bool)
pub fn set_reversed(&mut self, val: bool)
Sets whether the action should be run in reverse.
Sourcepub fn is_reversed(&self) -> bool
pub fn is_reversed(&self) -> bool
Gets whether the action should be run in reverse.
Sourcepub fn set_speed(&mut self, val: f32)
pub fn set_speed(&mut self, val: f32)
Sets the speed at which the action should be run. Set to 1.0 to get normal speed, Set to 2.0 to get two times faster.
Sourcepub fn get_speed(&self) -> f32
pub fn get_speed(&self) -> f32
Gets the speed at which the action should be run. Set to 1.0 to get normal speed, Set to 2.0 to get two times faster.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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