[][src]Struct comedy::com::ComApartmentScope

pub struct ComApartmentScope { /* fields omitted */ }

A scope for automatic COM initialization and deinitialization.

Functions that need COM initialized can take a &ComApartmentScope argument and be sure that it is so. It's recommended to use a thread local for this through the INIT_MTA or INIT_STA statics.

Methods

impl ComApartmentScope[src]

pub fn init_sta() -> Result<Self, HResult>[src]

This thread should be the sole occupant of a single thread apartment

pub fn init_mta() -> Result<Self, HResult>[src]

This thread should join the process's multithreaded apartment

Trait Implementations

impl Drop for ComApartmentScope[src]

impl Default for ComApartmentScope[src]

impl Debug for ComApartmentScope[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]