pub struct RepeatUntilFail<B: Bhv>(/* private fields */);Expand description
A decorator that runs the given node until it returns Status::Failure.
It returns Status::Running until the node returns Status::Failure, in which case it is propagated.
Trait Implementations§
Source§impl<B: Bhv> Bhv for RepeatUntilFail<B>
impl<B: Bhv> Bhv for RepeatUntilFail<B>
Source§impl<B: Clone + Bhv> Clone for RepeatUntilFail<B>
impl<B: Clone + Bhv> Clone for RepeatUntilFail<B>
Source§fn clone(&self) -> RepeatUntilFail<B>
fn clone(&self) -> RepeatUntilFail<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B> Freeze for RepeatUntilFail<B>where
B: Freeze,
impl<B> RefUnwindSafe for RepeatUntilFail<B>where
B: RefUnwindSafe,
impl<B> Send for RepeatUntilFail<B>where
B: Send,
impl<B> Sync for RepeatUntilFail<B>where
B: Sync,
impl<B> Unpin for RepeatUntilFail<B>where
B: Unpin,
impl<B> UnwindSafe for RepeatUntilFail<B>where
B: UnwindSafe,
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