pub struct SubmissionQueue<'a, E: EntryMarker = Entry> { /* private fields */ }
Expand description

An io_uring instance’s submission queue. This is used to send I/O requests to the kernel.

Implementations

Synchronize this type with the real submission queue.

This will flush any entries added by push or push_multiple and will update the queue’s length if the kernel has consumed some entries in the meantime.

When is_setup_sqpoll is set, whether the kernel threads has gone to sleep and requires a system call to wake it up.

The number of invalid submission queue entries that have been encountered in the ring buffer.

Returns true if the completion queue ring is overflown.

Get the total number of entries in the submission queue ring buffer.

Get the number of submission queue events in the ring buffer.

Returns true if the submission queue ring buffer is empty.

Returns true if the submission queue ring buffer has reached capacity, and no more events can be added before the kernel consumes some.

Attempts to push an entry into the queue. If the queue is full, an error is returned.

Safety

Developers must ensure that parameters of the entry (such as buffer) are valid and will be valid for the entire duration of the operation, otherwise it may cause memory problems.

Attempts to push several entries into the queue. If the queue does not have space for all of the entries, an error is returned.

Safety

Developers must ensure that parameters of all the entries (such as buffer) are valid and will be valid for the entire duration of the operation, otherwise it may cause memory problems.

Trait Implementations

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.