Trait compio_driver::OpCode
source · pub trait OpCode {
// Required methods
fn pre_submit(self: Pin<&mut Self>) -> Result<Decision>;
fn on_event(self: Pin<&mut Self>, event: &Event) -> Poll<Result<usize>>;
// Provided method
fn is_nonblocking(&self) -> bool { ... }
}
Expand description
Abstraction of operations.
Required Methods§
Provided Methods§
sourcefn is_nonblocking(&self) -> bool
fn is_nonblocking(&self) -> bool
Determines that the operation is really non-blocking defined by POSIX. If not, the driver will try to operate it in another thread.