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.
Requires the unstable feature.
Implementations
sourceimpl 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 RefUnwindSafe for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more