pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
pub fn new() -> Self
pub fn spawn<F>(&self, name: &str, setup: F) -> Handle
pub fn spawn_with_config<F>( &self, name: &str, setup: F, arena_size: usize, max_recoveries: u32, recovery_window: Duration, ) -> Handle
pub fn send_to(&self, id: u64, msg: Message)
pub fn send_named(&self, name: &str, msg: Message)
pub fn lookup(&self, name: &str) -> Option<u64>
pub fn broadcast(&self, msg: Message) -> usize
pub fn shutdown(&self)
pub fn is_running(&self) -> bool
pub fn actor_count(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
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