pub struct RunAgent<A: Agent> {
pub agent: Option<A>,
pub context: Context<A>,
pub level: InterruptionLevel,
}Fields§
§agent: Option<A>§context: Context<A>§level: InterruptionLevelImplementations§
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>
Used by a lifetime tracker of the supervisor to stop it.
It’s the separate type that wraps address made by a runtime.
fn interruption_level(&self) -> InterruptionLevel
fn routine<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto 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