pub struct FallbackNode { /* private fields */ }Expand description
The FallbackNode is used to try different strategies, until one succeeds. If any child returns RUNNING, previous children will NOT be ticked again.
-
If all the children return FAILURE, this node returns FAILURE.
-
If a child returns RUNNING, this node returns RUNNING.
-
If a child returns SUCCESS, stop the loop and return SUCCESS.
Implementations§
Source§impl FallbackNode
impl FallbackNode
pub fn create_node(name: impl AsRef<str>, config: NodeConfig) -> TreeNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FallbackNode
impl RefUnwindSafe for FallbackNode
impl Send for FallbackNode
impl Sync for FallbackNode
impl Unpin for FallbackNode
impl UnsafeUnpin for FallbackNode
impl UnwindSafe for FallbackNode
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