Enum Activity
#[non_exhaustive]pub enum Activity {
Show 17 variants
Core,
Idle,
Work,
Play,
Rest,
Meet,
Panic,
Raid,
PreRaid,
Hide,
Fight,
PlayDead,
Sniff,
Dig,
Emerge,
Roar,
Investigate,
}Expand description
Activity: the named lanes a brain’s behaviors start in. Only the ones
this port’s brains keep; a species’ own brain has its own subset, and an
activity its brain has no slot for refuses at registration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Core
core: always active.
Idle
idle.
Work
work.
Play
play.
Rest
rest.
Meet
meet.
Panic
panic.
Raid
raid.
PreRaid
pre_raid.
Hide
hide.
Fight
fight.
PlayDead
play_dead.
Sniff
sniff.
Dig
dig.
Emerge
emerge.
Roar
roar.
Investigate
investigate.
Trait Implementations§
impl Copy for Activity
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
Blanket Implementations§
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