[][src]Struct rio::Config

pub struct Config {
    pub depth: usize,
    pub sq_poll: bool,
    pub sq_poll_affinity: u32,
    pub io_poll: bool,
    pub print_profile_on_drop: bool,
    pub raw_params: Option<io_uring_params>,
}

Configuration for the underlying io_uring system.

Fields

depth: usize

The number of entries in the submission queue. The completion queue size may be specified by using raw_params instead. By default, the kernel will choose a completion queue that is 2x the submission queue's size.

sq_poll: bool

Enable SQPOLL mode, which spawns a kernel thread that polls for submissions without needing to block as often to submit.

This is a privileged operation, and will cause start to fail if run by a non-privileged user.

sq_poll_affinity: u32

Specify a particular CPU to pin the SQPOLL thread onto.

io_poll: bool

Specify that the user will directly poll the hardware for operation completion rather than using the completion queue.

CURRENTLY UNSUPPORTED

print_profile_on_drop: bool

Print a profile table on drop, showing where time was spent.

raw_params: Option<io_uring_params>

setting raw_params overrides everything else

Methods

impl Config[src]

pub fn start(self) -> Result<Rio>[src]

Start the Rio system.

Trait Implementations

impl Clone for Config[src]

impl Copy for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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, 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.