pub trait IourOpCode {
// Required method
fn create_entry(self: Pin<&mut Self>) -> OpEntry;
// Provided method
fn call_blocking(self: Pin<&mut Self>) -> Result<usize> { ... }
}
Expand description
Abstraction of io-uring operations.
Required Methods§
sourcefn create_entry(self: Pin<&mut Self>) -> OpEntry
fn create_entry(self: Pin<&mut Self>) -> OpEntry
Create submission entry.
Provided Methods§
sourcefn call_blocking(self: Pin<&mut Self>) -> Result<usize>
fn call_blocking(self: Pin<&mut Self>) -> Result<usize>
Call the operation in a blocking way. This method will only be called if
[create_entry
] returns OpEntry::Blocking
.