Struct io_uring::register::Restriction
source · pub struct Restriction(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for Restriction
impl RefUnwindSafe for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
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