pub struct Arbiter { /* private fields */ }Expand description
Arbiters provide an asynchronous execution environment for actors, functions and futures.
When an Arbiter is created, it spawns a new OS thread, and hosts an event loop. Some Arbiter functions execute on the current thread.
Implementations§
Source§impl Arbiter
impl Arbiter
Sourcepub fn new() -> Arbiter
pub fn new() -> Arbiter
Spawn new thread and run runtime in spawned thread. Returns address of newly created arbiter.
Sourcepub fn with_name(name: String) -> Arbiter
pub fn with_name(name: String) -> Arbiter
Spawn new thread and run runtime in spawned thread
Returns address of newly created arbiter.
Trait Implementations§
impl Eq for Arbiter
Auto Trait Implementations§
impl Freeze for Arbiter
impl !RefUnwindSafe for Arbiter
impl Send for Arbiter
impl Sync for Arbiter
impl Unpin for Arbiter
impl UnsafeUnpin for Arbiter
impl !UnwindSafe for Arbiter
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