[−][src]Struct io_uring::Parameters
The parameters that were used to construct an IoUring
.
Implementations
impl Parameters
[src]
pub fn is_setup_sqpoll(&self) -> bool
[src]
Whether a kernel thread is performing queue polling. Enabled with Builder::setup_sqpoll
.
pub fn is_setup_iopoll(&self) -> bool
[src]
Whether waiting for completion events is done with a busy loop instead of using IRQs.
Enabled with Builder::setup_iopoll
.
pub fn is_feature_single_mmap(&self) -> bool
[src]
If this flag is set, the SQ and CQ rings were mapped with a single mmap(2)
call. This
means that only two syscalls were used instead of three.
pub fn is_feature_nodrop(&self) -> bool
[src]
If this flag is set, io_uring supports never dropping completion events. If a completion event occurs and the CQ ring is full, the kernel stores the event internally until such a time that the CQ ring has room for more entries.
pub fn is_feature_submit_stable(&self) -> bool
[src]
If this flag is set, applications can be certain that any data for async offload has been consumed when the kernel has consumed the SQE.
pub fn is_feature_rw_cur_pos(&self) -> bool
[src]
If this flag is set, applications can specify offset == -1 with Readv
,
Writev
, ReadFixed
,
WriteFixed
, Read
and Write
,
which behaves exactly like setting offset == -1 in preadv2(2)
and pwritev2(2)
: it’ll use
(and update) the current file position.
This obviously comes with the caveat that if the application has multiple reads or writes in flight, then the end result will not be as expected. This is similar to threads sharing a file descriptor and doing IO using the current file position.
pub fn is_feature_cur_personality(&self) -> bool
[src]
If this flag is set, then io_uring guarantees that both sync and async execution of
a request assumes the credentials of the task that called Submitter::enter
to queue the requests.
If this flag isn’t set, then requests are issued with the credentials of the task that originally registered the io_uring.
If only one task is using a ring, then this flag doesn’t matter as the credentials will always be the same.
Note that this is the default behavior, tasks can still register different personalities
through Submitter::register_personality
.
pub fn is_feature_fast_poll(&self) -> bool
[src]
Whether async pollable I/O is fast.
See the commit message that introduced it for more details.
Requires the unstable
feature.
pub fn is_feature_poll_32bits(&self) -> bool
[src]
Whether poll events are stored using 32 bits instead of 16. This allows the user to use
EPOLLEXCLUSIVE
.
pub fn is_feature_sqpoll_nonfixed(&self) -> bool
[src]
pub fn is_feature_ext_arg(&self) -> bool
[src]
pub fn sq_entries(&self) -> u32
[src]
The number of submission queue entries allocated.
pub fn cq_entries(&self) -> u32
[src]
The number of completion queue entries allocated.
Trait Implementations
impl Clone for Parameters
[src]
pub fn clone(&self) -> Parameters
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Parameters
[src]
impl Send for Parameters
[src]
impl Sync for Parameters
[src]
impl Unpin for Parameters
[src]
impl UnwindSafe for Parameters
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,