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§

source

fn create_entry(self: Pin<&mut Self>) -> OpEntry

Create submission entry.

Provided Methods§

source

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.

Implementors§