Struct hwndloop::HwndLoop

source ·
pub struct HwndLoop<CommandType: Send + Debug + 'static> { /* private fields */ }
Expand description

An event loop backed by a Win32 window and thread.

A HwndLoop consists of a message window and handler thread on which all callbacks happen.

Implementations

Create a new HwndLoop.

Send a command to a HwndLoop, to be handled by HwndLoopCallbacks::handle_command on the handler thread.

Wait until all previously enqueued messages have been processed.

Trait Implementations

Executes the destructor for this type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.