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