pub struct ThreadActorSystemHandle { /* private fields */ }Implementations§
Source§impl ThreadActorSystemHandle
impl ThreadActorSystemHandle
Sourcepub fn new_actor_system(
name: impl Into<String>,
tokio: Option<Runtime>,
join_tasks_on_drop: bool,
) -> Self
pub fn new_actor_system( name: impl Into<String>, tokio: Option<Runtime>, join_tasks_on_drop: bool, ) -> Self
Owns the passed runtime, using it only if no contextual handle is available;
if None is passed, it creates a runtime with multi-threaded support,
CPU-based thread pool size and all features enabled.
pub fn spawn_thread_blocking_task(&self, f: impl FnOnce() + Send + 'static)
Trait Implementations§
Source§impl Clone for ThreadActorSystemHandle
impl Clone for ThreadActorSystemHandle
Source§fn clone(&self) -> ThreadActorSystemHandle
fn clone(&self) -> ThreadActorSystemHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadActorSystemHandle
impl Debug for ThreadActorSystemHandle
Source§impl Task for ThreadActorSystemHandle
impl Task for ThreadActorSystemHandle
fn is_finished(&self) -> bool
Auto Trait Implementations§
impl Freeze for ThreadActorSystemHandle
impl RefUnwindSafe for ThreadActorSystemHandle
impl Send for ThreadActorSystemHandle
impl Sync for ThreadActorSystemHandle
impl Unpin for ThreadActorSystemHandle
impl UnwindSafe for ThreadActorSystemHandle
Blanket Implementations§
Source§impl<ActorSystemHandleT> ActorSystemHandle for ActorSystemHandleTwhere
ActorSystemHandleT: ActorSystemHandle + 'static + ?Sized,
impl<ActorSystemHandleT> ActorSystemHandle for ActorSystemHandleTwhere
ActorSystemHandleT: ActorSystemHandle + 'static + ?Sized,
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