pub struct CommandRecordFinish {
pub ended_at: SystemTime,
pub result: CommandResultSummary,
pub operation_id: Option<String>,
}Expand description
Fields required when a command finishes.
Fields§
§ended_at: SystemTimeFinish time.
result: CommandResultSummaryProcess or spawn result summary.
operation_id: Option<String>Operation id reported by jj, when cheaply available.
Implementations§
Source§impl CommandRecordFinish
impl CommandRecordFinish
Sourcepub const fn from_result(
result: CommandResultSummary,
operation_id: Option<String>,
ended_at: SystemTime,
) -> Self
pub const fn from_result( result: CommandResultSummary, operation_id: Option<String>, ended_at: SystemTime, ) -> Self
Creates finish data for a process result.
Sourcepub fn from_exit_code(
code: i32,
stdout: impl AsRef<[u8]>,
stderr: impl AsRef<[u8]>,
ended_at: SystemTime,
) -> Self
pub fn from_exit_code( code: i32, stdout: impl AsRef<[u8]>, stderr: impl AsRef<[u8]>, ended_at: SystemTime, ) -> Self
Creates finish data for a process exit code and captured output.
Sourcepub fn from_spawn_error(
error: impl Into<String>,
stdout: impl AsRef<[u8]>,
stderr: impl AsRef<[u8]>,
ended_at: SystemTime,
) -> Self
pub fn from_spawn_error( error: impl Into<String>, stdout: impl AsRef<[u8]>, stderr: impl AsRef<[u8]>, ended_at: SystemTime, ) -> Self
Creates finish data for a command that failed before producing an exit status.
Trait Implementations§
Source§impl Clone for CommandRecordFinish
impl Clone for CommandRecordFinish
Source§fn clone(&self) -> CommandRecordFinish
fn clone(&self) -> CommandRecordFinish
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 CommandRecordFinish
impl Debug for CommandRecordFinish
impl Eq for CommandRecordFinish
Source§impl PartialEq for CommandRecordFinish
impl PartialEq for CommandRecordFinish
Source§fn eq(&self, other: &CommandRecordFinish) -> bool
fn eq(&self, other: &CommandRecordFinish) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandRecordFinish
Auto Trait Implementations§
impl Freeze for CommandRecordFinish
impl RefUnwindSafe for CommandRecordFinish
impl Send for CommandRecordFinish
impl Sync for CommandRecordFinish
impl Unpin for CommandRecordFinish
impl UnsafeUnpin for CommandRecordFinish
impl UnwindSafe for CommandRecordFinish
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