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
Operation was successful.
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
.
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 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
Performs the conversion.
Performs the conversion.
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
Auto Trait Implementations
impl RefUnwindSafe for HostingSuccess
impl Send for HostingSuccess
impl Sync for HostingSuccess
impl Unpin for HostingSuccess
impl UnwindSafe for HostingSuccess
Blanket Implementations
Mutably borrows from an owned value. Read more