[−][src]Struct comedy::com::ComApartmentScope
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]
fn default() -> ComApartmentScope
[src]
impl Debug for ComApartmentScope
[src]
Auto Trait Implementations
impl !Send for ComApartmentScope
impl !Sync for ComApartmentScope
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,