Enum netcorehost::error::HostingSuccess[][src]

pub enum HostingSuccess {
    Success,
    HostAlreadyInitialized,
    DifferentRuntimeProperties,
    Unknown(u32),
}
Expand description

Success codes returned by the hosting APIs from hostfxr, hostpolicy and nethost.

Source: https://github.com/dotnet/runtime/blob/main/docs/design/features/host-error-codes.md

Variants

Success

Operation was successful.

HostAlreadyInitialized

Initialization was successful, but another host context is already initialized, so the returned context is “secondary”. The requested context was otherwise fully compatible with the already initialized context. This is returned by hostfxr_initialize_for_runtime_config if it’s called when the host is already initialized in the process. Comes from corehost_initialize in hostpolicy.

DifferentRuntimeProperties

Initialization was successful, but another host context is already initialized and the requested context specified some runtime properties which are not the same (either in value or in presence) to the already initialized context. This is returned by hostfxr_initialize_for_runtime_config if it’s called when the host is already initialized in the process. Comes from corehost_initialize in hostpolicy.

Unknown(u32)

Unknown success status code.

Tuple Fields of Unknown

0: u32

Implementations

Creates a new HostingSuccess from the raw status code.

Tries to create a new HostingSuccess from the raw status code if it is known. Otherwise returns the given value as an Err.

Returns the underlying status code value.

Returns whether the status code of this success has a known meaning.

Returns whether the status code of this success has a unknown meaning.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.