pub struct Cooldown<T> {
pub child: Box<dyn Node<T>>,
pub cooldown_secs: f32,
pub fail_during: bool,
/* private fields */
}Expand description
Prevents child from running until a cooldown expires.
Fields§
§child: Box<dyn Node<T>>§cooldown_secs: f32§fail_during: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cooldown<T>
impl<T> !RefUnwindSafe for Cooldown<T>
impl<T> Send for Cooldown<T>
impl<T> Sync for Cooldown<T>
impl<T> Unpin for Cooldown<T>
impl<T> UnsafeUnpin for Cooldown<T>
impl<T> !UnwindSafe for Cooldown<T>
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