pub struct COINIT(/* private fields */);
kernel
and ole
only.Expand description
COINIT
enumeration (u32
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl COINIT
impl COINIT
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl COINIT
impl COINIT
sourcepub const APARTMENTTHREADED: Self = _
pub const APARTMENTTHREADED: Self = _
Initializes the thread for apartment-threaded object concurrency.
Use this when in a thread that creates a window.
sourcepub const MULTITHREADED: Self = _
pub const MULTITHREADED: Self = _
Initializes the thread for multithreaded object concurrency.
Use this when in a thread that doesn’t create a window.
sourcepub const DISABLE_OLE1DDE: Self = _
pub const DISABLE_OLE1DDE: Self = _
Disables DDE for OLE1 support.
It’s a good idea to add this flag, since it avoids some overhead associated with OLE 1.0, an obsolete technology.
sourcepub const SPEED_OVER_MEMORY: Self = _
pub const SPEED_OVER_MEMORY: Self = _
Increase memory usage in an attempt to increase performance.
Trait Implementations§
source§impl BitAndAssign for COINIT
impl BitAndAssign for COINIT
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign for COINIT
impl BitOrAssign for COINIT
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign for COINIT
impl BitXorAssign for COINIT
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl IntUnderlying for COINIT
impl IntUnderlying for COINIT
source§impl NativeBitflag for COINIT
impl NativeBitflag for COINIT
source§impl Ord for COINIT
impl Ord for COINIT
source§impl PartialEq for COINIT
impl PartialEq for COINIT
source§impl PartialOrd for COINIT
impl PartialOrd for COINIT
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more