pub enum OutputEvent {
Show 25 variants
IgnoredInitScript {
path: PathBuf,
},
WouldRunInitScript {
path: PathBuf,
root_path: PathBuf,
},
RunInitScript {
path: PathBuf,
},
NoConfigDetected,
RootWorktreeDetected,
ConfigDetected {
path: PathBuf,
},
FileOperationPlanningStarted {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
},
FileOperationPlanningFinished {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
action_count: usize,
},
FileOperationExecutionStarted {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
action_count: usize,
},
FileOperationActionAdvanced {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
},
FileOperationFinished {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
summary: FileOperationSummary,
dry_run: bool,
},
FileApplied {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
},
FileWouldApply {
operation: FileOperationKind,
source: PathBuf,
target: PathBuf,
},
FileMetadataApplied {
source: PathBuf,
target: PathBuf,
},
FileMetadataWouldApply {
source: PathBuf,
target: PathBuf,
},
FileSkipped {
operation: FileOperationKind,
target: PathBuf,
reason: String,
},
FileWouldSkip {
operation: FileOperationKind,
target: PathBuf,
reason: String,
},
FileDeleted {
path: PathBuf,
},
FileWouldDelete {
path: PathBuf,
},
FileWarning {
path: PathBuf,
reason: String,
},
OwnershipWarning {
path: PathBuf,
reason: String,
},
CommandStarted {
label: String,
},
CommandWouldRun {
label: String,
},
CommandAllowedFailure {
label: String,
reason: String,
},
InitCreated {
path: PathBuf,
},
}Expand description
A structured message produced during a treeboot operation.
Variants§
IgnoredInitScript
A non-executable script candidate was ignored.
WouldRunInitScript
A dry run would execute the given init script.
Fields
RunInitScript
An init script is about to run.
NoConfigDetected
No script or config was found.
RootWorktreeDetected
The run started from the root checkout instead of a separate worktree.
ConfigDetected
A config file was found.
FileOperationPlanningStarted
Planning started for a top-level file operation.
Fields
operation: FileOperationKindFile operation kind.
FileOperationPlanningFinished
Planning finished for a top-level file operation.
Fields
operation: FileOperationKindFile operation kind.
FileOperationExecutionStarted
Execution started for a top-level file operation.
Fields
operation: FileOperationKindFile operation kind.
FileOperationActionAdvanced
One concrete file-operation action completed.
Fields
operation: FileOperationKindFile operation kind.
FileOperationFinished
A top-level file operation finished.
Fields
operation: FileOperationKindFile operation kind.
summary: FileOperationSummaryCompact counts for the operation.
FileApplied
A file operation was applied.
Fields
operation: FileOperationKindFile operation kind.
FileWouldApply
A dry run would apply a file operation.
Fields
operation: FileOperationKindFile operation kind.
FileMetadataApplied
A sync operation applied metadata-only changes.
FileMetadataWouldApply
A dry run would apply metadata-only sync changes.
FileSkipped
A file operation was skipped.
Fields
operation: FileOperationKindFile operation kind.
FileWouldSkip
A dry run would skip a file operation.
Fields
operation: FileOperationKindFile operation kind.
FileDeleted
A sync operation deleted a target-only path.
FileWouldDelete
A dry-run sync operation would delete a target-only path.
FileWarning
A file operation warning was produced.
OwnershipWarning
Ownership metadata could not be preserved.
CommandStarted
A command is about to run.
CommandWouldRun
A dry run would execute a command.
CommandAllowedFailure
A command failure was allowed and execution will continue.
InitCreated
An init file was created.
Implementations§
Trait Implementations§
Source§impl Clone for OutputEvent
impl Clone for OutputEvent
Source§fn clone(&self) -> OutputEvent
fn clone(&self) -> OutputEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutputEvent
impl Debug for OutputEvent
impl Eq for OutputEvent
Source§impl PartialEq for OutputEvent
impl PartialEq for OutputEvent
Source§fn eq(&self, other: &OutputEvent) -> bool
fn eq(&self, other: &OutputEvent) -> bool
self and other values to be equal, and is used by ==.