pub struct AgentDef {
pub name: String,
pub methods: Vec<Function>,
}Expand description
Top-level agent definition: agent Name { fn handle(msg: trit) -> trit { ... } }
v0.1: agents have a single handle method that processes each incoming message.
Fields§
§name: String§methods: Vec<Function>Trait Implementations§
impl StructuralPartialEq for AgentDef
Auto Trait Implementations§
impl Freeze for AgentDef
impl RefUnwindSafe for AgentDef
impl Send for AgentDef
impl Sync for AgentDef
impl Unpin for AgentDef
impl UnsafeUnpin for AgentDef
impl UnwindSafe for AgentDef
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