Trait yatp::queue::WithExtras[][src]

pub trait WithExtras<T> {
    fn with_extras(self, extras: impl FnOnce() -> Extras) -> T;
}

A convenient trait that support construct a TaskCell with given extras.

Required methods

fn with_extras(self, extras: impl FnOnce() -> Extras) -> T[src]

Return a TaskCell with the given extras.

Loading content...

Implementors

impl<F> WithExtras<TaskCell> for F where
    F: FnOnce(&mut Handle<'_>) + Send + 'static, 
[src]

impl<F> WithExtras<TaskCell> for F where
    F: Future<Output = ()> + Send + 'static, 
[src]

impl<F: TaskCell> WithExtras<F> for F[src]

Loading content...