[][src]Struct fibers_tasque::DefaultCpuTaskQueue

pub struct DefaultCpuTaskQueue;

The default queue for executing CPU intensive tasks.

This queue is built by the expression TaskQueueBuilder::new().queue_name("fibers_default_cpu").finish() at the program startup time.

This is useful for executing heavy CPU intensive tasks (e.g., large data compression) without blocking main scheduler threads of fibers.

Methods

impl DefaultCpuTaskQueue[src]

pub fn get(self) -> TaskQueue[src]

Returns the task queue.

pub fn with<F, T>(self, f: F) -> T where
    F: FnOnce(&TaskQueue) -> T, 
[src]

Passes the reference to the task queue to the given function and executes it.

Trait Implementations

impl TaskQueueExt for DefaultCpuTaskQueue[src]

impl Copy for DefaultCpuTaskQueue[src]

impl Clone for DefaultCpuTaskQueue[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for DefaultCpuTaskQueue[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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