Trait Agent

Source
pub trait Agent {
    // Required methods
    fn generate() -> Result<Box<Self>, &'static str>
       where Self: Sized;
    fn collect(&self) -> Result<String, &'static str>;
    fn tick(&mut self) -> Result<(), &'static str>;
}

Required Methods§

Source

fn generate() -> Result<Box<Self>, &'static str>
where Self: Sized,

Source

fn collect(&self) -> Result<String, &'static str>

Source

fn tick(&mut self) -> Result<(), &'static str>

Implementors§