Enum aspen::Status
[−]
[src]
pub enum Status { Initialized, Running, Succeeded, Failed, }
Represents the status of a given node in the behavior tree.
Variants
Initialized
A Node
with this status is one that has not been ticked since either
its creation or since it was last reset.
Running
Represents that a Node
is currently executing its logic.
Succeeded
The status of a Node
which as been ticked to completion and
successfully executed its logic.
Failed
That status of a Node
which has been ticked to completion and failed
to execute its logic.
Methods
impl Status
[src]
fn is_done(&self) -> bool
Returns true
if the Status
is one where execution has finished.
Execution is considered to be done if it is either Succeeded
or
Failed
.
Trait Implementations
impl Copy for Status
[src]
impl Clone for Status
[src]
fn clone(&self) -> Status
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Status
[src]
fn eq(&self, __arg_0: &Status) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.