pub struct Arbiter(_);
Implementations
sourceimpl Arbiter
impl Arbiter
sourcepub fn new() -> Arbiter
pub fn new() -> Arbiter
Spawn new thread and run event loop in spawned thread. Returns address of newly created arbiter.
sourcepub fn spawn<F>(future: F)where
F: Future<Item = (), Error = ()> + 'static,
pub fn spawn<F>(future: F)where
F: Future<Item = (), Error = ()> + 'static,
Spawn a future on the current thread.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Arbiter
impl Send for Arbiter
impl Sync for Arbiter
impl Unpin for Arbiter
impl !UnwindSafe for Arbiter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more