[][src]Enum windows_service::service::ServiceExitCode

pub enum ServiceExitCode {
    Win32(u32),
    ServiceSpecific(u32),
}

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

Win32(u32)
ServiceSpecific(u32)

Implementations

impl ServiceExitCode[src]

pub const NO_ERROR: Self[src]

A ServiceExitCode indicating success, no errors.

Trait Implementations

impl Clone for ServiceExitCode[src]

impl Copy for ServiceExitCode[src]

impl Debug for ServiceExitCode[src]

impl Default for ServiceExitCode[src]

impl Eq for ServiceExitCode[src]

impl<'a> From<&'a SERVICE_STATUS> for ServiceExitCode[src]

impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode[src]

impl Hash for ServiceExitCode[src]

impl PartialEq<ServiceExitCode> for ServiceExitCode[src]

impl StructuralEq for ServiceExitCode[src]

impl StructuralPartialEq for ServiceExitCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.