pub struct ActorSystem {}Expand description
Entry point for building an actor system instance.
Implementations§
Source§impl ActorSystem
impl ActorSystem
Sourcepub fn create(
graceful_token: CancellationToken,
crash_token: CancellationToken,
) -> (SystemRef, SystemRunner)
pub fn create( graceful_token: CancellationToken, crash_token: CancellationToken, ) -> (SystemRef, SystemRunner)
Creates the actor system and returns a (SystemRef, SystemRunner) pair.
Cancel graceful_token for a graceful shutdown (exit code 0) or crash_token for a crash
shutdown (exit code 1); the reason is reflected in SystemRunner::run’s return value.
Auto Trait Implementations§
impl Freeze for ActorSystem
impl RefUnwindSafe for ActorSystem
impl Send for ActorSystem
impl Sync for ActorSystem
impl Unpin for ActorSystem
impl UnsafeUnpin for ActorSystem
impl UnwindSafe for ActorSystem
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