Struct miow::iocp::CompletionStatus[][src]

#[repr(transparent)]
pub struct CompletionStatus(_);
Expand description

A status message received from an I/O completion port.

These statuses can be created via the new or empty constructors and then provided to a completion port, or they are read out of a completion port. The fields of each status are read through its accessor methods.

Implementations

Creates a new completion status with the provided parameters.

This function is useful when creating a status to send to a port with the post method. The parameters are opaquely passed through and not interpreted by the system at all.

pub fn from_entry(entry: &OVERLAPPED_ENTRY) -> &CompletionStatus

Creates a new borrowed completion status from the borrowed OVERLAPPED_ENTRY argument provided.

This method will wrap the OVERLAPPED_ENTRY in a CompletionStatus, returning the wrapped structure.

Creates a new “zero” completion status.

This function is useful when creating a stack buffer or vector of completion statuses to be passed to the get_many function.

Returns the number of bytes that were transferred for the I/O operation associated with this completion status.

Returns the completion key value associated with the file handle whose I/O operation has completed.

A completion key is a per-handle key that is specified when it is added to an I/O completion port via add_handle or add_socket.

Returns a pointer to the Overlapped structure that was specified when the I/O operation was started.

Returns a pointer to the internal OVERLAPPED_ENTRY object.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.