Struct io_uring::opcode::UringCmd80
source · pub struct UringCmd80 { /* private fields */ }
Expand description
A file/device-specific 80-byte command, akin (but not equivalent) to ioctl(2)
.
Implementations§
source§impl UringCmd80
impl UringCmd80
pub fn new(fd: impl UseFixed, cmd_op: u32) -> Self
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.
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) -> Entry128
Auto Trait Implementations§
impl Freeze for UringCmd80
impl RefUnwindSafe for UringCmd80
impl Send for UringCmd80
impl Sync for UringCmd80
impl Unpin for UringCmd80
impl UnwindSafe for UringCmd80
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