Struct miow::Overlapped[][src]

pub struct Overlapped(_);
Expand description

A wrapper around OVERLAPPED to provide “rustic” accessors and initializers.

Implementations

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.

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.

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.

Gain access to the raw underlying data

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.

Reads the offset inside this overlapped structure.

Sets the hEvent field of this structure.

The event specified can be null.

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

Trait Implementations

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 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.