pub struct BackgroundCommandSnapshot {
pub task_id: String,
pub command: String,
pub description: Option<String>,
pub status: BackgroundTaskStatus,
pub elapsed_ms: u64,
pub timeout_ms: u64,
pub exit_code: Option<i32>,
pub stdout: String,
pub stderr: String,
pub stdout_truncated: bool,
pub stderr_truncated: bool,
pub error: Option<String>,
}Expand description
Snapshot of a background bash command’s current state.
Fields§
§task_id: String§command: String§description: Option<String>§status: BackgroundTaskStatus§elapsed_ms: u64§timeout_ms: u64§exit_code: Option<i32>§stdout: String§stderr: String§stdout_truncated: bool§stderr_truncated: bool§error: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for BackgroundCommandSnapshot
impl Clone for BackgroundCommandSnapshot
Source§fn clone(&self) -> BackgroundCommandSnapshot
fn clone(&self) -> BackgroundCommandSnapshot
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 BackgroundCommandSnapshot
impl Debug for BackgroundCommandSnapshot
Source§impl<'de> Deserialize<'de> for BackgroundCommandSnapshot
impl<'de> Deserialize<'de> for BackgroundCommandSnapshot
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
Auto Trait Implementations§
impl Freeze for BackgroundCommandSnapshot
impl RefUnwindSafe for BackgroundCommandSnapshot
impl Send for BackgroundCommandSnapshot
impl Sync for BackgroundCommandSnapshot
impl Unpin for BackgroundCommandSnapshot
impl UnsafeUnpin for BackgroundCommandSnapshot
impl UnwindSafe for BackgroundCommandSnapshot
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