Struct io_uring::register::Restriction
source · #[repr(transparent)]pub struct Restriction(_);
Expand description
An allowed feature of io_uring. You can set the allowed features with
register_restrictions
.
Implementations§
source§impl Restriction
impl Restriction
sourcepub fn register_op(op: u8) -> Restriction
pub fn register_op(op: u8) -> Restriction
Allow an io_uring_register
opcode.
sourcepub fn sqe_op(op: u8) -> Restriction
pub fn sqe_op(op: u8) -> Restriction
Allow a submission queue event opcode.
sourcepub fn sqe_flags_allowed(flags: u8) -> Restriction
pub fn sqe_flags_allowed(flags: u8) -> Restriction
Allow the given submission queue event flags.
sourcepub fn sqe_flags_required(flags: u8) -> Restriction
pub fn sqe_flags_required(flags: u8) -> Restriction
Require the given submission queue event flags. These flags must be set on every submission.