[][src]Struct miow::Overlapped

pub struct Overlapped(_);

A wrapper around OVERLAPPED to provide "rustic" accessors and initializers.

Implementations

impl Overlapped[src]

pub fn zero() -> Overlapped[src]

Creates a new zeroed out instance of an overlapped I/O tracking state.

This is suitable for passing to methods which will then later get notified via an I/O Completion Port.

pub fn initialize_with_autoreset_event() -> Result<Overlapped>[src]

Creates a new Overlapped with an initialized non-null hEvent. The caller is responsible for calling CloseHandle on the hEvent field of the returned Overlapped. The event is created with bManualReset set to FALSE, meaning after a single thread waits on the event, it will be reset.

pub unsafe fn from_raw<'a>(ptr: *mut OVERLAPPED) -> &'a mut Overlapped[src]

Creates a new Overlapped function pointer from the underlying OVERLAPPED, wrapping in the "rusty" wrapper for working with accessors.

Unsafety

This function doesn't validate ptr nor the lifetime of the returned pointer at all, it's recommended to use this method with extreme caution.

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

Gain access to the raw underlying data

pub fn set_offset(&mut self, offset: u64)[src]

Sets the offset inside this overlapped structure.

Note that for I/O operations in general this only has meaning for I/O handles that are on a seeking device that supports the concept of an offset.

pub fn offset(&self) -> u64[src]

Reads the offset inside this overlapped structure.

pub fn set_event(&mut self, event: HANDLE)[src]

Sets the hEvent field of this structure.

The event specified can be null.

pub fn event(&self) -> HANDLE[src]

Reads the hEvent field of this structure, may return null.

Trait Implementations

impl Debug for Overlapped[src]

impl Send for Overlapped[src]

impl Sync for Overlapped[src]

Auto Trait Implementations

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.