Struct yatp::task::callback::Runner[][src]

pub struct Runner { /* fields omitted */ }

Callback task runner.

It’s possible that a task can’t be finished in a single execution and needs to be rerun. max_inspace_spin is the maximum times a task is rerun at once before being put back to the thread pool.

Implementations

impl Runner[src]

pub fn new(max_inplace_spin: usize) -> Self[src]

Creates a new runner with given max_inplace_spin.

pub fn set_max_inplace_spin(&mut self, max_inplace_spin: usize)[src]

Sets max_inplace_spin.

Trait Implementations

impl Clone for Runner[src]

impl Default for Runner[src]

impl Runner for Runner[src]

type TaskCell = TaskCell

The local spawn that can be accepted to spawn tasks.

Auto Trait Implementations

impl RefUnwindSafe for Runner

impl Send for Runner

impl Sync for Runner

impl Unpin for Runner

impl UnwindSafe for Runner

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]