pub enum ServiceErrKind {
Show 17 variants
ServiceManagementNotAvailable,
AlreadyInstalled,
NotInstalled,
InvalidNameOrPrefix,
WrongState(ServiceStatus),
Timeout(ServiceStatus),
TimeoutError(Box<ServiceErrKind>),
BadUtf8,
BadExitStatus(Option<i32>, String),
ServicePathNotFound,
AccessDenied,
DirectoryNotFound,
BadServiceSpec,
IoError,
BadSid,
PlatformError(Option<i64>),
Unknown,
}Expand description
The error type for service management operations.
Variants§
ServiceManagementNotAvailable
Service management is not available on this platform either because it’s not supported or because the service manager is not detected.
AlreadyInstalled
The service is already installed.
NotInstalled
The service is not installed.
InvalidNameOrPrefix
The service name or prefix is invalid.
WrongState(ServiceStatus)
The service is in the wrong state for the requested operation.
Timeout(ServiceStatus)
The status operation timed out. Last status is returned.
TimeoutError(Box<ServiceErrKind>)
The operation timed out. Last error is returned.
BadUtf8
The operation failed because an OS string wasn’t valid UTF-8.
BadExitStatus(Option<i32>, String)
The operation failed because a child process exited with a non-zero status.
ServicePathNotFound
The service path was not found.
AccessDenied
The operation failed due to insufficient permissions.
DirectoryNotFound
The operation failed because a directory was not found.
BadServiceSpec
The operation failed because the service specification is invalid.
IoError
The operation failed because of an I/O error.
BadSid
The operation failed because the SID could not be extracted.
PlatformError(Option<i64>)
The operation failed because of a platform-specific error.
Unknown
The operation failed because of an unknown error.
Trait Implementations§
Source§impl Clone for ServiceErrKind
impl Clone for ServiceErrKind
Source§fn clone(&self) -> ServiceErrKind
fn clone(&self) -> ServiceErrKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServiceErrKind
impl Debug for ServiceErrKind
Source§impl UniKind for ServiceErrKind
impl UniKind for ServiceErrKind
Source§fn context(&self, _cause: Option<Cause<'_>>) -> Option<Cow<'static, str>>
fn context(&self, _cause: Option<Cause<'_>>) -> Option<Cow<'static, str>>
None.Source§fn value(&self, _cause: Option<Cause<'_>>) -> Cow<'static, str>
fn value(&self, _cause: Option<Cause<'_>>) -> Cow<'static, str>
"".Source§fn code(&self, _cause: Option<Cause<'_>>) -> i32
fn code(&self, _cause: Option<Cause<'_>>) -> i32
Source§fn into_error(self) -> UniError<Self>where
Self: Sized,
fn into_error(self) -> UniError<Self>where
Self: Sized,
UniKind into a UniError with the same kind.