pub enum ColonyEvent {
Spawned {
id: AgentId,
agent_type: String,
},
Moved {
id: AgentId,
to: Position,
},
Engulfed {
id: AgentId,
document: DocumentId,
},
Presented {
id: AgentId,
fragment_count: usize,
node_ids: Vec<NodeId>,
},
Deposited {
id: AgentId,
location: SubstrateLocation,
},
Wired {
id: AgentId,
connection_count: usize,
},
Died {
signal: DeathSignal,
},
TickComplete {
tick: Tick,
alive: usize,
dead_this_tick: usize,
},
CapabilityExported {
agent_id: AgentId,
terms_count: usize,
},
CapabilityIntegrated {
agent_id: AgentId,
from_agent: AgentId,
terms_count: usize,
},
Symbiosis {
host: AgentId,
absorbed: AgentId,
host_type: String,
absorbed_type: String,
},
Dissolved {
agent_id: AgentId,
permeability: f64,
terms_externalized: usize,
},
}Expand description
Event emitted by the colony during simulation.
Variants§
Spawned
An agent was spawned.
Moved
An agent moved to a new position.
Engulfed
An agent engulfed a document.
Presented
An agent presented fragments to the knowledge graph.
Deposited
An agent deposited a trace.
Wired
An agent wired connections in the graph.
Died
An agent triggered apoptosis.
Fields
§
signal: DeathSignalTickComplete
A tick completed.
CapabilityExported
An agent exported its vocabulary as a capability deposit.
CapabilityIntegrated
An agent integrated vocabulary from a capability deposit.
Symbiosis
An agent absorbed another through symbiosis.
Dissolved
An agent’s boundary dissolved, externalizing vocabulary.
Trait Implementations§
Source§impl Clone for ColonyEvent
impl Clone for ColonyEvent
Source§fn clone(&self) -> ColonyEvent
fn clone(&self) -> ColonyEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColonyEvent
impl Debug for ColonyEvent
Auto Trait Implementations§
impl Freeze for ColonyEvent
impl RefUnwindSafe for ColonyEvent
impl Send for ColonyEvent
impl Sync for ColonyEvent
impl Unpin for ColonyEvent
impl UnwindSafe for ColonyEvent
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