[−][src]Struct miow::iocp::CompletionStatus
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
impl CompletionStatus
[src]
pub fn new(
bytes: u32,
token: usize,
overlapped: *mut Overlapped
) -> CompletionStatus
[src]
bytes: u32,
token: usize,
overlapped: *mut Overlapped
) -> CompletionStatus
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
[src]
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.
pub fn zero() -> CompletionStatus
[src]
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.
pub fn bytes_transferred(&self) -> u32
[src]
Returns the number of bytes that were transferred for the I/O operation associated with this completion status.
pub fn token(&self) -> usize
[src]
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
.
pub fn overlapped(&self) -> *mut OVERLAPPED
[src]
Returns a pointer to the Overlapped
structure that was specified when
the I/O operation was started.
pub fn entry(&self) -> &OVERLAPPED_ENTRY
[src]
Returns a pointer to the internal OVERLAPPED_ENTRY
object.
Trait Implementations
impl Clone for CompletionStatus
[src]
fn clone(&self) -> CompletionStatus
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompletionStatus
[src]
impl Debug for CompletionStatus
[src]
impl Send for CompletionStatus
[src]
impl Sync for CompletionStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompletionStatus
impl Unpin for CompletionStatus
impl UnwindSafe for CompletionStatus
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,