pub struct ProcessExitedNotification {
pub exit_code: i32,
pub process_handle: String,
pub stderr: String,
pub stderr_cap_reached: bool,
pub stdout: String,
pub stdout_cap_reached: bool,
}Expand description
Final process exit notification for process/spawn.
JSON schema
{
"title": "ProcessExitedNotification",
"description": "Final process exit notification for `process/spawn`.",
"type": "object",
"required": [
"exitCode",
"processHandle",
"stderr",
"stderrCapReached",
"stdout",
"stdoutCapReached"
],
"properties": {
"exitCode": {
"description": "Process exit code.",
"type": "integer",
"format": "int32"
},
"processHandle": {
"description": "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
"type": "string"
},
"stderr": {
"description": "Buffered stderr capture.\n\nEmpty when stderr was streamed via `process/outputDelta`.",
"type": "string"
},
"stderrCapReached": {
"description": "Whether stderr reached `outputBytesCap`.\n\nIn streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.",
"type": "boolean"
},
"stdout": {
"description": "Buffered stdout capture.\n\nEmpty when stdout was streamed via `process/outputDelta`.",
"type": "string"
},
"stdoutCapReached": {
"description": "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.",
"type": "boolean"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Fields§
§exit_code: i32Process exit code.
process_handle: StringClient-supplied, connection-scoped processHandle from process/spawn.
stderr: StringBuffered stderr capture.
Empty when stderr was streamed via process/outputDelta.
stderr_cap_reached: boolWhether stderr reached outputBytesCap.
In streaming mode, stderr is empty and cap state is also reported on the final stderr process/outputDelta notification.
stdout: StringBuffered stdout capture.
Empty when stdout was streamed via process/outputDelta.
stdout_cap_reached: boolWhether stdout reached outputBytesCap.
In streaming mode, stdout is empty and cap state is also reported on the final stdout process/outputDelta notification.
Trait Implementations§
Source§impl Clone for ProcessExitedNotification
impl Clone for ProcessExitedNotification
Source§fn clone(&self) -> ProcessExitedNotification
fn clone(&self) -> ProcessExitedNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessExitedNotification
impl Debug for ProcessExitedNotification
Source§impl<'de> Deserialize<'de> for ProcessExitedNotification
impl<'de> Deserialize<'de> for ProcessExitedNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ProcessExitedNotification> for ServerNotification
impl From<ProcessExitedNotification> for ServerNotification
Source§fn from(value: ProcessExitedNotification) -> Self
fn from(value: ProcessExitedNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessExitedNotification
impl RefUnwindSafe for ProcessExitedNotification
impl Send for ProcessExitedNotification
impl Sync for ProcessExitedNotification
impl Unpin for ProcessExitedNotification
impl UnsafeUnpin for ProcessExitedNotification
impl UnwindSafe for ProcessExitedNotification
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