Skip to main content

AgentState

Trait AgentState 

Source
pub trait AgentState:
    Serialize
    + DeserializeOwned
    + Default
    + Send { }
Expand description

What a run’s shared state must be.

A blanket implementation covers every type that qualifies; you never write impl AgentState. Use () when the agent keeps no state.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§