pub struct ActorRuntime<T: Actor> {
pub actor: T,
pub context: T::Context,
pub failures: Failures,
}Fields§
§actor: T§context: T::Context§failures: FailuresImplementations§
Trait Implementations§
Source§impl<T: Actor> OpenRuntime for ActorRuntime<T>
impl<T: Actor> OpenRuntime for ActorRuntime<T>
Source§impl<T: Actor> Runtime for ActorRuntime<T>
impl<T: Actor> Runtime for ActorRuntime<T>
Source§fn get_interruptor(&mut self) -> Interruptor
fn get_interruptor(&mut self) -> 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 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<T> Freeze for ActorRuntime<T>
impl<T> RefUnwindSafe for ActorRuntime<T>
impl<T> Send for ActorRuntime<T>
impl<T> Sync for ActorRuntime<T>
impl<T> Unpin for ActorRuntime<T>
impl<T> UnwindSafe for ActorRuntime<T>
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