Trait AgentContext

Source
pub trait AgentContext<A: Agent>
where Self: ReachableContext<Address = Address<A>> + ManagedContext,
{ // Required methods fn session(&mut self) -> &mut AgentSession<A>; fn next_envelope<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Option<Envelope<A>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

fn session(&mut self) -> &mut AgentSession<A>

Source

fn next_envelope<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Option<Envelope<A>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§