pub struct ReactorApi { /* private fields */ }Expand description
Api for io-uring reactor.
Implementations§
Source§impl ReactorApi
impl ReactorApi
Sourcepub fn submit_inline<F>(&self, id: u32, f: F)where
F: FnOnce(&mut Entry),
pub fn submit_inline<F>(&self, id: u32, f: F)where
F: FnOnce(&mut Entry),
Submit request to the driver.
Sourcepub fn cancel_all_sync(&self, fd: Fd) -> Result<(), Error>
pub fn cancel_all_sync(&self, fd: Fd) -> Result<(), Error>
Attempt to sync cancel all requests.
Sourcepub fn is_supported(&self, opcode: u8) -> bool
pub fn is_supported(&self, opcode: u8) -> bool
Get whether a specific io-uring opcode is supported.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReactorApi
impl !Send for ReactorApi
impl !Sync for ReactorApi
impl !UnwindSafe for ReactorApi
impl Freeze for ReactorApi
impl Unpin for ReactorApi
impl UnsafeUnpin for ReactorApi
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