[][src]Struct io_uring::Submitter

pub struct Submitter<'a> { /* fields omitted */ }

Submitter

Methods

impl<'a> Submitter<'a>[src]

pub fn register(&self, target: Target) -> Result<()>[src]

Deprecated since 0.3.5:

please use Submitter::register_* instead

Register files or user buffers for asynchronous I/O.

pub fn unregister(&self, target: Target) -> Result<()>[src]

Deprecated since 0.3.5:

please use Submitter::unregister_* instead

Unregister files or user buffers for asynchronous I/O.

pub unsafe fn enter(
    &self,
    to_submit: u32,
    min_complete: u32,
    flag: u32,
    sig: Option<&sigset_t>
) -> Result<usize>
[src]

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>

impl<'a> !Send for Submitter<'a>

impl<'a> !Sync for Submitter<'a>

impl<'a> Unpin for Submitter<'a>

impl<'a> UnwindSafe for Submitter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.