pub struct BoxSpawn(/* private fields */);
Expand description
Boxed Spawn
object.
Trait Implementations§
Source§impl Spawn for BoxSpawn
impl Spawn for BoxSpawn
Source§fn spawn_boxed(&self, fiber: Box<dyn Future<Item = (), Error = ()> + Send>)
fn spawn_boxed(&self, fiber: Box<dyn Future<Item = (), Error = ()> + Send>)
Spawns a fiber which will execute given boxed future.
Source§fn spawn_monitor<F, T, E>(&self, f: F) -> Monitor<T, E>
fn spawn_monitor<F, T, E>(&self, f: F) -> Monitor<T, E>
Spawns a fiber and returns a future to monitor its execution result.
Auto Trait Implementations§
impl Freeze for BoxSpawn
impl !RefUnwindSafe for BoxSpawn
impl Send for BoxSpawn
impl !Sync for BoxSpawn
impl Unpin for BoxSpawn
impl !UnwindSafe for BoxSpawn
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