Enum CreateProcessW::Error
source · pub enum Error {
CreationFailed(u32),
WaitFailed(u32),
KillFailed(u32),
GetExitCodeFailed(u32),
GetProcessIdFailed(u32),
}Expand description
Error type of a failed function on a child process.
Note that this error type is not the same of a non-zero exit status. The
error code linked to the error type is the result of the
GetLastError function. The variants give some context
to the user but if you want more information about an error code, you can
look at the System Error Codes.
Variants§
CreationFailed(u32)
An error occurred when calling CreateProcessW
WaitFailed(u32)
An error occurred when calling WaitForSingleObject.
KillFailed(u32)
An error occurred when calling TerminateProcess
GetExitCodeFailed(u32)
An error occurred when calling GetExitCodeProcess
GetProcessIdFailed(u32)
An error occurred when calling
GetProcessId.
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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