pub struct UringCmd16 { /* private fields */ }
Expand description
A file/device-specific 16-byte command, akin (but not equivalent) to ioctl(2)
.
Implementations§
Source§impl UringCmd16
impl UringCmd16
Sourcepub const CODE: u8 = 46u8
pub const CODE: u8 = 46u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
pub fn new(fd: impl UseFixed, cmd_op: u32) -> Self
Sourcepub const fn buf_index(self, buf_index: Option<u16>) -> Self
pub const fn buf_index(self, buf_index: Option<u16>) -> Self
The buf_index
is an index into an array of fixed buffers,
and is only valid if fixed buffers were registered.
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for UringCmd16
impl RefUnwindSafe for UringCmd16
impl Send for UringCmd16
impl Sync for UringCmd16
impl Unpin for UringCmd16
impl UnwindSafe for UringCmd16
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