Struct tokio::runtime::current_thread::Handle
[−]
[src]
pub struct Handle(_);
Handle to spawn a future on the corresponding CurrentThread
runtime instance
Methods
impl Handle
[src]
pub fn spawn<F>(&self, future: F) -> Result<(), SpawnError> where
F: Future<Item = (), Error = ()> + Send + 'static,
[src]
F: Future<Item = (), Error = ()> + Send + 'static,
Spawn a future onto the CurrentThread
runtime instance corresponding to this handle
Panics
This function panics if the spawn fails. Failure occurs if the CurrentThread
instance of the Handle
does not exist anymore.
Trait Implementations
impl Debug for Handle
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more