pub enum WindowsErrorControl {
Ignore,
Normal,
Severe,
Critical,
}Expand description
Caller-selected SCM error-control setting.
§Errors
Infallible: this type carries a caller choice and cannot fail. The Service
Control Manager conditions it takes part in — an access denial (OS code
5) and a registration that disappeared before the operation — are
reported by WindowsScmManager’s operations, not by this type.
Variants§
Ignore
Log the error and continue startup.
Normal
Log the error and continue startup.
Severe
Log the error; restart using the last-known-good configuration.
Critical
Log the error; startup fails using the last-known-good configuration.
Trait Implementations§
Source§impl Clone for WindowsErrorControl
impl Clone for WindowsErrorControl
impl Copy for WindowsErrorControl
Source§impl Debug for WindowsErrorControl
impl Debug for WindowsErrorControl
impl Eq for WindowsErrorControl
Source§impl PartialEq for WindowsErrorControl
impl PartialEq for WindowsErrorControl
impl StructuralPartialEq for WindowsErrorControl
Auto Trait Implementations§
impl Freeze for WindowsErrorControl
impl RefUnwindSafe for WindowsErrorControl
impl Send for WindowsErrorControl
impl Sync for WindowsErrorControl
impl Unpin for WindowsErrorControl
impl UnsafeUnpin for WindowsErrorControl
impl UnwindSafe for WindowsErrorControl
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