Enum com::runtime::ApartmentType [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum ApartmentType {
SingleThreaded,
Multithreaded,
}
Expand description
The threading model of the current thread’s apartment
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A single-threaded apartment (COINIT_APARTMENTTHREADED)
A multi-threaded apartment (COINIT_MULTITHREADED)