[−][src]Struct io_uring::Submitter
Submitter
Implementations
impl<'a> Submitter<'a>
[src]
pub unsafe fn enter(
&self,
to_submit: u32,
min_complete: u32,
flag: u32,
sig: Option<&sigset_t>
) -> Result<usize>
[src]
&self,
to_submit: u32,
min_complete: u32,
flag: u32,
sig: Option<&sigset_t>
) -> Result<usize>
Initiate and/or complete asynchronous I/O
Safety
This provides a raw interface so developer must ensure that parameters are correct.
pub fn submit(&self) -> Result<usize>
[src]
Initiate asynchronous I/O.
pub fn submit_and_wait(&self, want: usize) -> Result<usize>
[src]
Initiate and/or complete asynchronous I/O
pub fn register_buffers(&self, bufs: &[iovec]) -> Result<()>
[src]
Register buffers.
pub fn register_files(&self, fds: &[RawFd]) -> Result<()>
[src]
Register files for I/O.
pub fn register_eventfd(&self, eventfd: RawFd) -> Result<()>
[src]
It’s possible to use eventfd(2)
to get notified of completion events on an io_uring instance.
pub fn register_files_update(&self, offset: u32, fds: &[RawFd]) -> Result<usize>
[src]
This operation replaces existing files in the registered file set with new ones, either turning a sparse entry (one where fd is equal to -1) into a real one, removing an existing entry (new one is set to -1), or replacing an existing entry with a new existing entry.
pub fn register_eventfd_async(&self, eventfd: RawFd) -> Result<()>
[src]
This works just like Submitter::register_eventfd, except notifications are only posted for events that complete in an async manner.
pub fn register_probe(&self, probe: &mut Probe) -> Result<()>
[src]
This operation returns a structure Probe
,
which contains information about the opcodes supported by io_uring on the running kernel.
pub fn register_personality(&self) -> Result<i32>
[src]
This operation registers credentials of the running application with io_uring, and returns an id associated with these credentials.
pub fn unregister_buffers(&self) -> Result<()>
[src]
Unregister buffers.
pub fn unregister_files(&self) -> Result<()>
[src]
Unregister files.
pub fn unregister_eventfd(&self) -> Result<()>
[src]
Unregister an eventfd file descriptor to stop notifications.
pub fn unregister_personality(&self, id: i32) -> Result<()>
[src]
This operation unregisters a previously registered personality with io_uring.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Submitter<'a>
[src]
impl<'a> !Send for Submitter<'a>
[src]
impl<'a> !Sync for Submitter<'a>
[src]
impl<'a> Unpin for Submitter<'a>
[src]
impl<'a> UnwindSafe for Submitter<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,