Struct oppgave::TaskGuard
[−]
[src]
pub struct TaskGuard<'a, T: 'a> { /* fields omitted */ }
A wrapper of the fetched task
Pops a task from the backup on drop.
Methods
impl<'a, T> TaskGuard<'a, T>
[src]
fn stop(&self)
Stop the underlying queue
fn fail(&self)
Fail the current task and don't remove it from the backup queue
fn inner(&self) -> &T
Get access to the underlying task
fn queue(&self) -> &Queue
Get access to the wrapper queue
Trait Implementations
impl<'a, T> Deref for TaskGuard<'a, T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value