Skip to main content

CLSCTX

Struct CLSCTX 

Source
pub struct CLSCTX(/* private fields */);
Available on crate feature ole only.
Expand description

CLSCTX enumeration (u32).

Implementations§

Source§

impl CLSCTX

Source

pub const unsafe fn as_mut(&mut self) -> &mut u32

Returns a mutable reference to the underlying raw value.

§Safety

Be sure the integer being set is meaningful for the actual type.

Source

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.

Source

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 CLSCTX

Source

pub const INPROC_SERVER: Self

Same process.

The code that creates and manages objects of this class is a DLL that runs in the same process as the caller of the function specifying the class context.

Source

pub const INPROC_HANDLER: Self

The code that manages objects of this class is an in-process handler. This is a DLL that runs in the client process and implements client-side structures of this class when instances of the class are accessed remotely.

Source

pub const LOCAL_SERVER: Self

Different process, same computer.

The EXE code that creates and manages objects of this class runs on same machine but is loaded in a separate process space.

Source

pub const REMOTE_SERVER: Self

Different computer.

A remote context. The LocalServer32 or LocalService code that creates and manages objects of this class is run on a different computer.

Source

pub const NO_CODE_DOWNLOAD: Self

Disables the downloading of code from the directory service or the Internet. This flag cannot be set at the same time as CLSCTX::ENABLE_CODE_DOWNLOAD.

Source

pub const NO_CUSTOM_MARSHAL: Self

Specify if you want the activation to fail if it uses custom marshalling.

Source

pub const ENABLE_CODE_DOWNLOAD: Self

Enables the downloading of code from the directory service or the Internet. This flag cannot be set at the same time as CLSCTX::NO_CODE_DOWNLOAD.

Source

pub const NO_FAILURE_LOG: Self

The CLSCTX::NO_FAILURE_LOG can be used to override the logging of failures in CoCreateInstanceEx.

Source

pub const DISABLE_AAA: Self

Disables activate-as-activator (AAA) activations for this activation only.

Source

pub const ENABLE_AAA: Self

Enables activate-as-activator (AAA) activations for this activation only.

Source

pub const FROM_DEFAULT_CONTEXT: Self

Begin this activation from the default context of the current apartment.

Source

pub const ACTIVATE_X86_SERVER: Self

Activate or connect to a 32-bit version of the server; fail if one is not registered.

Source

pub const ACTIVATE_32_BIT_SERVER: Self

Activate or connect to a 32-bit version of the server; fail if one is not registered.

Source

pub const ACTIVATE_64_BIT_SERVER: Self

Activate or connect to a 64 bit version of the server; fail if one is not registered.

Source

pub const ACTIVATE_AAA_AS_IU: Self

Specify this flag for Interactive User activation behavior for As-Activator servers.

Source

pub const ACTIVATE_ARM32_SERVER: Self

(No official docs for this entry.)

Source

pub const ALL: Self

Source

pub const SERVER: Self

Trait Implementations§

Source§

impl AsRef<u32> for CLSCTX

Source§

fn as_ref(&self) -> &u32

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Binary for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for CLSCTX

Source§

fn clone(&self) -> CLSCTX

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CLSCTX

Source§

fn default() -> CLSCTX

Returns the “default value” for a type. Read more
Source§

impl Display for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CLSCTX> for u32

Source§

fn from(v: CLSCTX) -> Self

Converts to this type from the input type.
Source§

impl Hash for CLSCTX

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for CLSCTX

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for CLSCTX

Source§

fn eq(&self, other: &CLSCTX) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for CLSCTX

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl UpperHex for CLSCTX

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for CLSCTX

Source§

impl Eq for CLSCTX

Source§

impl StructuralPartialEq for CLSCTX

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.