[−][src]Enum windows_service::service::ServiceExitCode
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]
Trait Implementations
impl Clone for ServiceExitCode[src]
fn clone(&self) -> ServiceExitCode[src]
fn clone_from(&mut self, source: &Self)1.0.0[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]
fn from(service_status: &'a SERVICE_STATUS) -> Self[src]
impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode[src]
fn from(service_status: &'a SERVICE_STATUS_PROCESS) -> Self[src]
impl Hash for ServiceExitCode[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<ServiceExitCode> for ServiceExitCode[src]
fn eq(&self, other: &ServiceExitCode) -> bool[src]
fn ne(&self, other: &ServiceExitCode) -> bool[src]
impl StructuralEq for ServiceExitCode[src]
impl StructuralPartialEq for ServiceExitCode[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceExitCode
impl Send for ServiceExitCode
impl Sync for ServiceExitCode
impl Unpin for ServiceExitCode
impl UnwindSafe for ServiceExitCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,