pub struct Fallback { /* private fields */ }Expand description
Control node that tries children in order until one succeeds.
Fallback ticks children in order on each tick:
- returns
TickStatus::Successas soon as a child succeeds - returns
TickStatus::Runningas soon as a child is still running - returns
TickStatus::Failureonly if every child fails on the same tick
This variant does not remember which child was previously running, so the next tick starts again from the first child.
Implementations§
Trait Implementations§
Source§impl Node for Fallback
impl Node for Fallback
Source§fn tick(&mut self) -> TickStatus
fn tick(&mut self) -> TickStatus
Advance the node by one execution step. Read more
Auto Trait Implementations§
impl Freeze for Fallback
impl !RefUnwindSafe for Fallback
impl !Send for Fallback
impl !Sync for Fallback
impl Unpin for Fallback
impl UnsafeUnpin for Fallback
impl !UnwindSafe for Fallback
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