pub struct Capabilities {
pub max_version: RingVersion,
pub max_submission_queue_size: u32,
pub max_completion_queue_size: u32,
pub supports_completion_event: bool,
pub is_emulated: bool,
}Expand description
What the running system’s IoRing implementation supports, queried
without creating a ring.
Fields§
§max_version: RingVersionThe highest IORING_VERSION the system supports.
max_submission_queue_size: u32The largest submission queue a ring can request.
max_completion_queue_size: u32The largest completion queue a ring can request.
supports_completion_event: boolWhether SetIoRingCompletionEvent is available. Both
crate::IoRing::completion_event and the thread-pool delivery path
built on it refuse to construct without this.
is_emulated: boolWhether the ring is emulated in user mode rather than backed by the kernel. A consumer reaching for this crate to maximize throughput needs to know when they are getting an emulation with no kernel benefit, so this is surfaced rather than hidden.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Capabilities
Source§impl Debug for Capabilities
impl Debug for Capabilities
impl Eq for Capabilities
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more