#[non_exhaustive]
#[repr(u32)]
pub enum StatusCode {
Show 40 variants Success = 0, Success_HostAlreadyInitialized = 1, Success_DifferentRuntimeProperties = 2, InvalidArgFailure = 2_147_516_545, CoreHostLibLoadFailure = 2_147_516_546, CoreHostLibMissingFailure = 2_147_516_547, CoreHostEntryPointFailure = 2_147_516_548, CoreHostCurHostFindFailure = 2_147_516_549, CoreClrResolveFailure = 2_147_516_551, CoreClrBindFailure = 2_147_516_552, CoreClrInitFailure = 2_147_516_553, CoreClrExeFailure = 2_147_516_554, ResolverInitFailure = 2_147_516_555, ResolverResolveFailure = 2_147_516_556, LibHostCurExeFindFailure = 2_147_516_557, LibHostInitFailure = 2_147_516_558, LibHostExecModeFailure = 2_147_516_560, LibHostSdkFindFailure = 2_147_516_561, LibHostInvalidArgs = 2_147_516_562, InvalidConfigFile = 2_147_516_563, AppArgNotRunnable = 2_147_516_564, AppHostExeNotBoundFailure = 2_147_516_565, FrameworkMissingFailure = 2_147_516_566, HostApiFailed = 2_147_516_567, HostApiBufferTooSmall = 2_147_516_568, LibHostUnknownCommand = 2_147_516_569, LibHostAppRootFindFailure = 2_147_516_570, SdkResolverResolveFailure = 2_147_516_571, FrameworkCompatFailure = 2_147_516_572, FrameworkCompatRetry = 2_147_516_573, AppHostExeNotBundle = 2_147_516_574, BundleExtractionFailure = 2_147_516_575, BundleExtractionIOError = 2_147_516_576, LibHostDuplicateProperty = 2_147_516_577, HostApiUnsupportedVersion = 2_147_516_578, HostInvalidState = 2_147_516_579, HostPropertyNotFound = 2_147_516_580, CoreHostIncompatibleConfig = 2_147_516_581, HostApiUnsupportedScenario = 2_147_516_582, HostFeatureDisabled = 2_147_516_583,
}
Expand description

Module for shared bindings for all hosting components. Status 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 Definition: https://github.com/dotnet/runtime/blob/57bfe474518ab5b7cfe6bf7424a79ce3af9d6657/src/native/corehost/error_codes.h

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.
§

Success = 0

§

Success_HostAlreadyInitialized = 1

§

Success_DifferentRuntimeProperties = 2

§

InvalidArgFailure = 2_147_516_545

§

CoreHostLibLoadFailure = 2_147_516_546

§

CoreHostLibMissingFailure = 2_147_516_547

§

CoreHostEntryPointFailure = 2_147_516_548

§

CoreHostCurHostFindFailure = 2_147_516_549

§

CoreClrResolveFailure = 2_147_516_551

§

CoreClrBindFailure = 2_147_516_552

§

CoreClrInitFailure = 2_147_516_553

§

CoreClrExeFailure = 2_147_516_554

§

ResolverInitFailure = 2_147_516_555

§

ResolverResolveFailure = 2_147_516_556

§

LibHostCurExeFindFailure = 2_147_516_557

§

LibHostInitFailure = 2_147_516_558

§

LibHostExecModeFailure = 2_147_516_560

§

LibHostSdkFindFailure = 2_147_516_561

§

LibHostInvalidArgs = 2_147_516_562

§

InvalidConfigFile = 2_147_516_563

§

AppArgNotRunnable = 2_147_516_564

§

AppHostExeNotBoundFailure = 2_147_516_565

§

FrameworkMissingFailure = 2_147_516_566

§

HostApiFailed = 2_147_516_567

§

HostApiBufferTooSmall = 2_147_516_568

§

LibHostUnknownCommand = 2_147_516_569

§

LibHostAppRootFindFailure = 2_147_516_570

§

SdkResolverResolveFailure = 2_147_516_571

§

FrameworkCompatFailure = 2_147_516_572

§

FrameworkCompatRetry = 2_147_516_573

§

AppHostExeNotBundle = 2_147_516_574

§

BundleExtractionFailure = 2_147_516_575

§

BundleExtractionIOError = 2_147_516_576

§

LibHostDuplicateProperty = 2_147_516_577

§

HostApiUnsupportedVersion = 2_147_516_578

§

HostInvalidState = 2_147_516_579

§

HostPropertyNotFound = 2_147_516_580

§

CoreHostIncompatibleConfig = 2_147_516_581

§

HostApiUnsupportedScenario = 2_147_516_582

§

HostFeatureDisabled = 2_147_516_583

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.