Enum behavior_tree::Behavior [−][src]
pub enum Behavior<T> {
Wait {
curr: f64,
max: f64,
},
Cond(String, fn(_: &T) -> bool, Box<Node<T>>, Box<Node<T>>),
Sequence(usize, Vec<Node<T>>),
Action(String, fn(_: &mut T) -> Status),
ActionSuccess(String, fn(_: &mut T)),
StatefulAction(String, Box<dyn StatefulAction<T>>),
}
Variants
StatefulAction(String, Box<dyn StatefulAction<T>>)
Tuple Fields of StatefulAction
0: String
1: Box<dyn StatefulAction<T>>
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Behavior<T>
impl<T> !UnwindSafe for Behavior<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more