pub struct WhenAll<C>(/* private fields */);Expand description
A node that runs its child nodes in turn until all of them complete. If all the children return
Status::Success, then this node also returns Status::Success, otherwise it returns
Status::Failure after the first child node that fails. If there are no failures but there
is at least one node that returns Status::Running, all the nodes are run and
Status::Running is returned. This node is similar to [Seq], with the difference
being that this node runs its children even after one of them returns Status::Running,
instead of waiting for the next call of Bhv::update.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for WhenAll<C>
impl<C> !RefUnwindSafe for WhenAll<C>
impl<C> !Send for WhenAll<C>
impl<C> !Sync for WhenAll<C>
impl<C> Unpin for WhenAll<C>
impl<C> !UnwindSafe for WhenAll<C>
Blanket Implementations§
Source§impl<B> BhvExt for Bwhere
B: Bhv,
impl<B> BhvExt for Bwhere
B: Bhv,
Source§fn pass(self) -> Pass<Self>
fn pass(self) -> Pass<Self>
Return a node that runs this node and returns
Status::Success when done. Read moreSource§fn fail(self) -> Fail<Self>
fn fail(self) -> Fail<Self>
Return a node that runs this node and returns
Status::Failure when done. Read moreSource§fn run_if<C>(self, cond: C) -> RunIf<Self, C>
fn run_if<C>(self, cond: C) -> RunIf<Self, C>
Return a node that runs this node as long as the specified condition holds true. Read more
Source§fn repeat(self, count: u32) -> Repeat<Self>
fn repeat(self, count: u32) -> Repeat<Self>
Return a node that runs this node the given number of times
and returns the last exit status when done. Read more
Source§fn repeat_until<C>(self, cond: C) -> RepeatUntil<Self, C>
fn repeat_until<C>(self, cond: C) -> RepeatUntil<Self, C>
Return a node that runs this node then checks the passed condition
until the condition returns true.
The node then returns the last exit status when done. Read more
Source§fn repeat_until_pass(self) -> RepeatUntilPass<Self>
fn repeat_until_pass(self) -> RepeatUntilPass<Self>
Return a node that runs this node until it returns
Status::Success. Read moreSource§fn repeat_until_fail(self) -> RepeatUntilFail<Self>
fn repeat_until_fail(self) -> RepeatUntilFail<Self>
Return a node that runs this node until it returns
Status::Failure. Read moreSource§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