[][src]Struct mio::windows::Overlapped

#[repr(C)]
pub struct Overlapped { /* fields omitted */ }

A wrapper around an internal instance over miow::Overlapped which is in turn a wrapper around the Windows type OVERLAPPED.

This type is required to be used for all IOCP operations on handles that are registered with an event loop. The event loop will receive notifications over OVERLAPPED pointers that have completed, and it will cast that pointer to a pointer to this structure and invoke the associated callback.

Methods

impl Overlapped[src]

pub fn new(cb: fn(_: &OVERLAPPED_ENTRY)) -> Overlapped[src]

Creates a new Overlapped which will invoke the provided cb callback whenever it's triggered.

The returned Overlapped must be used as the OVERLAPPED passed to all I/O operations that are registered with mio's event loop. When the I/O operation associated with an OVERLAPPED pointer completes the event loop will invoke the function pointer provided by cb.

pub fn as_mut_ptr(&self) -> *mut OVERLAPPED[src]

Get the underlying Overlapped instance as a raw pointer.

This can be useful when only a shared borrow is held and the overlapped pointer needs to be passed down to winapi.

Trait Implementations

impl Send for Overlapped[src]

impl Sync for Overlapped[src]

impl Debug for Overlapped[src]

Blanket Implementations

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.

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

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

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