pub struct RunAgent<A: Agent> {
pub agent: Option<A>,
pub context: Context<A>,
pub level: InterruptionLevel,
}
Fields§
§agent: Option<A>
§context: Context<A>
§level: InterruptionLevel
Implementations§
Trait Implementations§
Source§impl<A: Agent> InteractiveRuntime for RunAgent<A>
impl<A: Agent> InteractiveRuntime for RunAgent<A>
Source§impl<A: Agent> InteractiveTask<A> for RunAgent<A>
impl<A: Agent> InteractiveTask<A> for RunAgent<A>
fn spawn_connected(self) -> <Self::Context as ReachableContext>::Address
Source§impl<A: Agent> IntoFuture for RunAgent<A>
impl<A: Agent> IntoFuture for RunAgent<A>
Source§impl<A> Runtime for RunAgent<A>where
A: Agent,
impl<A> Runtime for RunAgent<A>where
A: Agent,
Source§fn get_interruptor(&mut self) -> Box<dyn Interruptor>
fn get_interruptor(&mut self) -> Box<dyn Interruptor>
The
get_interruptor
method returns an instance of an interruptor. Read moreSource§fn interruption_level(&self) -> InterruptionLevel
fn interruption_level(&self) -> InterruptionLevel
The
interruption_level
method returns the default level at which the runtime
should be interrupted. Read moreAuto Trait Implementations§
impl<A> Freeze for RunAgent<A>
impl<A> !RefUnwindSafe for RunAgent<A>
impl<A> Send for RunAgent<A>
impl<A> !Sync for RunAgent<A>
impl<A> Unpin for RunAgent<A>
impl<A> !UnwindSafe for RunAgent<A>
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