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§impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode
impl<'a> From<&'a SERVICE_STATUS_PROCESS> for ServiceExitCode
Source§impl Hash for ServiceExitCode
impl Hash for ServiceExitCode
Source§impl PartialEq for ServiceExitCode
impl PartialEq for ServiceExitCode
impl Copy for ServiceExitCode
impl Eq for ServiceExitCode
impl StructuralPartialEq for ServiceExitCode
Auto Trait Implementations§
impl Freeze for ServiceExitCode
impl RefUnwindSafe for ServiceExitCode
impl Send for ServiceExitCode
impl Sync for ServiceExitCode
impl Unpin for ServiceExitCode
impl UnwindSafe for ServiceExitCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more