pub enum ExecutionFailure {
ExitStatus,
TimedOut,
Cancelled,
OutputLimit {
stream: OutputStream,
},
Io {
operation: ExecutionOperation,
source: Error,
},
Allocation {
stream: OutputStream,
source: TryReserveError,
},
}Expand description
Why an invocation failed, independently of its retained output.
Variants§
ExitStatus
The direct child completed unsuccessfully; its status is in evidence.
TimedOut
Child exit or pipe EOF was not observed before the caller’s deadline.
Cancelled
The caller’s cancellation predicate requested cleanup.
OutputLimit
A stream emitted more bytes than allowed.
Fields
§
stream: OutputStreamStream whose bound was exceeded.
Io
A process or pipe operation failed.
Fields
§
operation: ExecutionOperationOperation category; contains no command or credential values.
Allocation
Retained output storage could not be allocated.
Fields
§
stream: OutputStreamStream being captured.
§
source: TryReserveErrorUnderlying allocation failure.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionFailure
impl !UnwindSafe for ExecutionFailure
impl Freeze for ExecutionFailure
impl Send for ExecutionFailure
impl Sync for ExecutionFailure
impl Unpin for ExecutionFailure
impl UnsafeUnpin for ExecutionFailure
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