Enum windows_service::service::ServiceExitCode
source · pub enum ServiceExitCode {
Win32(u32),
ServiceSpecific(u32),
}Expand description
Service exit code abstraction.
This struct provides a logic around the relationship between dwWin32ExitCode and
dwServiceSpecificExitCode.
The service can either return a win32 error code or a custom error code. In case of custom
error, dwWin32ExitCode has to be set to ERROR_SERVICE_SPECIFIC_ERROR and the
dwServiceSpecificExitCode assigned with custom error code.
Refer to the corresponding MSDN article for more info:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms685996(v=vs.85).aspx
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ServiceExitCode
impl Clone for ServiceExitCode
source§fn clone(&self) -> ServiceExitCode
fn clone(&self) -> ServiceExitCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ServiceExitCode
impl Debug for ServiceExitCode
source§impl Default for ServiceExitCode
impl Default for ServiceExitCode
source§impl<'a> From<&'a SERVICE_STATUS> for ServiceExitCode
impl<'a> From<&'a SERVICE_STATUS> for ServiceExitCode
source§fn from(service_status: &'a SERVICE_STATUS) -> Self
fn from(service_status: &'a SERVICE_STATUS) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode
impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode
source§fn from(service_status: &'a SERVICE_STATUS_PROCESS) -> Self
fn from(service_status: &'a SERVICE_STATUS_PROCESS) -> Self
Converts to this type from the input type.
source§impl Hash for ServiceExitCode
impl Hash for ServiceExitCode
source§impl PartialEq<ServiceExitCode> for ServiceExitCode
impl PartialEq<ServiceExitCode> for ServiceExitCode
source§fn eq(&self, other: &ServiceExitCode) -> bool
fn eq(&self, other: &ServiceExitCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.