pub enum Status {
Success,
Failure,
Running,
}Expand description
The result of a behavior or action.
A tree node that receives a tick signal executes it’s callback. The callback must return either:
- Success
- Failure or
- Running, if the action is asynchronous and it needs more time to complete
Variants§
Success
The behavior or action succeeded.
Failure
The behavior or action failed.
Running
The behavior or action is still running.
‘Running’ is usually returned by nodes that has long- running operations (e.g NavigatetoGoal, CountToHundred) and nodes that has operations that are everlasting (e.g ComputePI, AvoidObstacles) with no clear definition of an end-state
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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