pub struct RunAgent<A>where
A: Agent,{
pub agent: Option<A>,
pub context: Context<A>,
pub level: InterruptionLevel,
}Fields§
§agent: Option<A>§context: Context<A>§level: InterruptionLevelImplementations§
Source§impl<A> RunAgent<A>where
A: Agent,
impl<A> RunAgent<A>where
A: Agent,
Trait Implementations§
Source§impl<A> InteractiveRuntime for RunAgent<A>where
A: Agent,
impl<A> InteractiveRuntime for RunAgent<A>where
A: Agent,
Source§impl<A> InteractiveTask<A> for RunAgent<A>where
A: Agent,
impl<A> InteractiveTask<A> for RunAgent<A>where
A: Agent,
fn spawn_connected(self) -> <Self::Context as ReachableContext>::Address
Source§impl<A> IntoFuture for RunAgent<A>where
A: Agent,
impl<A> IntoFuture for RunAgent<A>where
A: Agent,
Source§type IntoFuture = Pin<Box<dyn Future<Output = ()> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = ()> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> <RunAgent<A> as IntoFuture>::IntoFuture
fn into_future(self) -> <RunAgent<A> as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Source§impl<A> MoltingRuntime for RunAgent<A>where
A: Agent<Context = MoltingSession<A>>,
impl<A> MoltingRuntime for RunAgent<A>where
A: Agent<Context = MoltingSession<A>>,
fn do_molting(self: Box<RunAgent<A>>) -> Option<Box<dyn MoltingRuntime>>
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