Struct yatp::task::callback::Runner [−][src]
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
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
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][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,