#[non_exhaustive]pub enum ErrorKind {
Show 22 variants
UnsupportedPlatform,
SessionLimit,
InvalidSessionKey,
Cancelled,
AccessDenied,
InvalidInput,
DirectoryNotSupported,
TooManyResources,
CallbackInUse,
DataChanged,
MalformedOsData,
RebootRequired,
ShutdownIncomplete,
RestartIncomplete,
OperationOutOfSequence,
RegistryUnavailable,
FilterNotFound,
OutOfMemory,
ApplicationRestartInUse,
AsyncWorkerUnavailable,
SessionEnded,
Os,
}Expand description
A stable, non-exhaustive classification of failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedPlatform
The requested operating-system operation is unavailable on this target.
SessionLimit
All 64 Restart Manager session slots in the user session are occupied.
InvalidSessionKey
A session key was malformed, expired, or otherwise rejected.
Cancelled
A shutdown or restart operation was cancelled.
AccessDenied
Windows denied access to a resource or process.
InvalidInput
Input could not be represented by the native API.
DirectoryNotSupported
Restart Manager does not accept directories as file resources.
TooManyResources
A collection was too large for the native u32 count fields.
CallbackInUse
Another process-wide progress callback operation is active.
DataChanged
The affected-application or filter list changed through every retry.
MalformedOsData
Windows returned an internally inconsistent buffer.
RebootRequired
Windows requires a system reboot before this operation can proceed.
ShutdownIncomplete
At least one affected application could not be shut down.
RestartIncomplete
At least one stopped application could not be restarted.
OperationOutOfSequence
An operation was requested in an invalid native sequence.
Restart Manager could not access its registry state.
FilterNotFound
The selected filter does not exist.
OutOfMemory
The operating system could not allocate required memory.
ApplicationRestartInUse
This process already owns a crate-managed restart registration.
A dedicated asynchronous worker thread could not be created or failed.
SessionEnded
The weak cancellation capability refers to an ended session.
Os
Another Windows error not covered by a more specific classification.