Enum behavior_tree::Behavior[][src]

pub enum Behavior<T> {
    Wait {
        curr: f64,
        max: f64,
    },
    Cond(Stringfn(_: &T) -> boolBox<Node<T>>, Box<Node<T>>),
    Sequence(usizeVec<Node<T>>),
    Action(Stringfn(_: &mut T) -> Status),
    ActionSuccess(Stringfn(_: &mut T)),
    StatefulAction(StringBox<dyn StatefulAction<T>>),
}

Variants

Wait

Fields of Wait

curr: f64max: f64
Cond(Stringfn(_: &T) -> boolBox<Node<T>>, Box<Node<T>>)

Tuple Fields of Cond

0: String1: fn(_: &T) -> bool2: Box<Node<T>>3: Box<Node<T>>
Sequence(usizeVec<Node<T>>)

Tuple Fields of Sequence

0: usize1: Vec<Node<T>>
Action(Stringfn(_: &mut T) -> Status)

Tuple Fields of Action

0: String1: fn(_: &mut T) -> Status
ActionSuccess(Stringfn(_: &mut T))

Tuple Fields of ActionSuccess

0: String1: fn(_: &mut T)
StatefulAction(StringBox<dyn StatefulAction<T>>)

Tuple Fields of StatefulAction

0: String1: Box<dyn StatefulAction<T>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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