Struct synchrotron::Handle
[−]
[src]
pub struct Handle<'a>(_);
A cloneable handle to a Core
.
Cloned handles always refer to the same Core
instance.
Handle
can be used to spawn
tasks even when the Core
is running.
Methods
impl<'a> Handle<'a>
[src]
fn spawn<F: Future<Item = (), Error = Void> + 'a>(&self, f: F)
Spawn a new task into the executor. The spawned tasks are executed
when run
is called.
Trait Implementations
impl<'a> Debug for Handle<'a>
[src]
impl<'a> Clone for Handle<'a>
[src]
fn clone(&self) -> Handle<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more