Struct winrt::RuntimeContext

source ·
pub struct RuntimeContext { /* private fields */ }
Expand description

Manages initialization and uninitialization of the Windows Runtime.

Implementations§

Initializes the Windows Runtime. This must be called before any other operations can use the Windows Runtime. The Windows Runtime will be unitilized when the returned RuntimeContext is dropped or uninit is called explicitly. You have to make sure that this does not happen as long as any Windows Runtime object is still alive.

Unitializes the Windows Runtime. This must not be called as long as any Windows Runtime object is still alive.

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.