pub struct ActionNode<T> {
pub name: String,
pub func: Box<dyn FnMut(&mut TickContext<'_, T>) -> Status + Send + Sync>,
}Expand description
A leaf that performs an action and returns a status.
Fields§
§name: String§func: Box<dyn FnMut(&mut TickContext<'_, T>) -> Status + Send + Sync>Trait Implementations§
Source§impl<T> Debug for ActionNode<T>
impl<T> Debug for ActionNode<T>
Auto Trait Implementations§
impl<T> Freeze for ActionNode<T>
impl<T> !RefUnwindSafe for ActionNode<T>
impl<T> Send for ActionNode<T>
impl<T> Sync for ActionNode<T>
impl<T> Unpin for ActionNode<T>
impl<T> UnsafeUnpin for ActionNode<T>
impl<T> !UnwindSafe for ActionNode<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