[][src]Struct fibers_tasque::DefaultIoTaskQueue

pub struct DefaultIoTaskQueue;

The default queue for executing I/O intensive tasks.

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

Usually it is preferred to use libraries specialized for asynchronous I/O instead of this. But this may be useful, for example, for executing existing synchronous functions (e.g., read_dir) as asynchronously in a fibers context.

Methods

impl DefaultIoTaskQueue[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 DefaultIoTaskQueue[src]

impl Copy for DefaultIoTaskQueue[src]

impl Clone for DefaultIoTaskQueue[src]

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

Performs copy-assignment from source. Read more

impl Debug for DefaultIoTaskQueue[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]