#[repr(u8)]pub enum BehaviorState {
Idle = 0,
Running = 1,
Success = 2,
Failure = 3,
Skipped = 4,
}Expand description
Behavior state.
Implementation is as in BehaviorTree.CPP to be able to cooperate with Groot2. IMPORTANT: Behaviors should NEVER return IDLE from a tick.
Variants§
Idle = 0
Behavior is not executing.
Running = 1
Behavior is still executing.
Success = 2
Behavior finished with success.
Failure = 3
Behavior execution failed.
Skipped = 4
Behavior has been skipped.
Implementations§
Source§impl BehaviorState
impl BehaviorState
Trait Implementations§
Source§impl Clone for BehaviorState
impl Clone for BehaviorState
Source§fn clone(&self) -> BehaviorState
fn clone(&self) -> BehaviorState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeJson for BehaviorState
impl DeJson for BehaviorState
Source§impl Debug for BehaviorState
impl Debug for BehaviorState
Source§impl Default for BehaviorState
impl Default for BehaviorState
Source§fn default() -> BehaviorState
fn default() -> BehaviorState
Returns the “default value” for a type. Read more
Source§impl Display for BehaviorState
impl Display for BehaviorState
Source§impl FromStr for BehaviorState
impl FromStr for BehaviorState
Source§impl PartialEq for BehaviorState
impl PartialEq for BehaviorState
Source§fn eq(&self, other: &BehaviorState) -> bool
fn eq(&self, other: &BehaviorState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BehaviorState
impl Eq for BehaviorState
impl StructuralPartialEq for BehaviorState
Auto Trait Implementations§
impl Freeze for BehaviorState
impl RefUnwindSafe for BehaviorState
impl Send for BehaviorState
impl Sync for BehaviorState
impl Unpin for BehaviorState
impl UnsafeUnpin for BehaviorState
impl UnwindSafe for BehaviorState
Blanket Implementations§
Source§impl<T> AnyPortValue for T
impl<T> AnyPortValue for T
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