Struct taskqueue::FutureGuard [−] [src]

pub struct FutureGuard<R: Send + 'static>(_);

Future holding the variable of a maybe to be executed task. Guards the Task and waits for it on Drop.

Methods

impl<R: Send + 'static> FutureGuard<R>

fn get(self) -> R

Blocks the current Queue until the value can be recieved. This may happen instantly or take a long time, completely depending on the task and the amount of work the corresponding queue has to face.

Trait Implementations

impl<R: Send + 'static> Debug for FutureGuard<R>

fn fmt(&self, f: &mut Formatter) -> Result

impl<R: Send + 'static> Drop for FutureGuard<R>

fn drop(&mut self)