pub struct ReactiveFallbackNode {}Expand description
The ReactiveFallback is similar to a ParallelNode. All the children are ticked from first to last:
- If a child returns RUNNING, continue to the next sibling.
- If a child returns FAILURE, continue to the next sibling.
- If a child returns SUCCESS, stop and return SUCCESS.
If all the children fail, than this node returns FAILURE.
IMPORTANT: to work properly, this node should not have more than a single asynchronous child.
Implementations§
Source§impl ReactiveFallbackNode
impl ReactiveFallbackNode
pub fn create_node(name: impl AsRef<str>, config: NodeConfig) -> TreeNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReactiveFallbackNode
impl RefUnwindSafe for ReactiveFallbackNode
impl Send for ReactiveFallbackNode
impl Sync for ReactiveFallbackNode
impl Unpin for ReactiveFallbackNode
impl UnsafeUnpin for ReactiveFallbackNode
impl UnwindSafe for ReactiveFallbackNode
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