Struct sota::interpreter::GlobalInterpreter [] [src]

pub struct GlobalInterpreter<'t> {
    pub config: Config,
    pub token: Option<Cow<'t, AccessToken>>,
    pub http_client: Box<Client>,
    pub rvi: Option<Services>,
}

The GlobalInterpreter interprets the Command inside incoming Interpret messages, broadcasting Events globally and (optionally) sending the final outcome Event to the Interpret response channel.

Fields

config
token
http_client
rvi

Trait Implementations

impl<'t> Interpreter<Interpret, Event> for GlobalInterpreter<'t>
[src]

fn interpret(&mut self, interpret: Interpret, etx: &Sender<Event>)

fn run(&mut self, irx: Receiver<I>, otx: Sender<O>, wg: WaitGroup)