pub trait ShellWording:
Send
+ Sync
+ 'static {
Show 16 methods
// Required methods
fn job_read(&self, read: &JobRead) -> String;
fn job_input(&self, sent: &JobInputSent<'_>) -> String;
fn job_kill(&self, kill: &JobKillAsked<'_>) -> String;
fn call_refused(&self, refusal: &CallRefusal) -> String;
fn run_failure(&self, failure: &RunFailure<'_>) -> String;
fn monitor_refusal(&self, refusal: &MonitorRefusal) -> String;
fn monitor_started(&self, started: &MonitorStarted<'_>) -> String;
fn command_killed(&self, killed: &CommandKilled<'_>) -> String;
fn output_saved(&self, saved: &OutputSaved<'_>) -> String;
fn stored_binary_part(&self, part: &StoredBinaryPart<'_>) -> String;
fn json_as_tsv(&self, json: &JsonAsTsv<'_>) -> String;
fn folded_code(&self, folded: &str) -> String;
fn blank_lines(&self, count: usize) -> String;
fn folded_lines(&self, folded: &FoldedLines<'_>) -> String;
fn omitted_lines(&self, omitted: &OmittedLines) -> String;
fn repeated_lines(&self, repeated: &RepeatedLines) -> String;
}Expand description
The text the model reads for each refusal, notice and marker the shell raises, one method per family.
There is no default for any method and aither ships no implementation.
Required Methods§
Sourcefn job_read(&self, read: &JobRead) -> String
fn job_read(&self, read: &JobRead) -> String
What a read of a job’s output returned: new output, or the fact that nothing changed since the job’s last read.
Sourcefn job_input(&self, sent: &JobInputSent<'_>) -> String
fn job_input(&self, sent: &JobInputSent<'_>) -> String
A job’s stdin was written.
Sourcefn job_kill(&self, kill: &JobKillAsked<'_>) -> String
fn job_kill(&self, kill: &JobKillAsked<'_>) -> String
A kill of a job was asked for.
Sourcefn call_refused(&self, refusal: &CallRefusal) -> String
fn call_refused(&self, refusal: &CallRefusal) -> String
A call of a tool of the shell refused before it ran.
Sourcefn run_failure(&self, failure: &RunFailure<'_>) -> String
fn run_failure(&self, failure: &RunFailure<'_>) -> String
A call or run that failed before or while it ran.
Sourcefn monitor_refusal(&self, refusal: &MonitorRefusal) -> String
fn monitor_refusal(&self, refusal: &MonitorRefusal) -> String
A monitor call refused before anything started.
Sourcefn monitor_started(&self, started: &MonitorStarted<'_>) -> String
fn monitor_started(&self, started: &MonitorStarted<'_>) -> String
The result of a monitor call that started watching.
Sourcefn command_killed(&self, killed: &CommandKilled<'_>) -> String
fn command_killed(&self, killed: &CommandKilled<'_>) -> String
Why a command was killed, appended to its result.
Sourcefn output_saved(&self, saved: &OutputSaved<'_>) -> String
fn output_saved(&self, saved: &OutputSaved<'_>) -> String
A text output replaced by its preview and the file holding all of it.
Sourcefn stored_binary_part(&self, part: &StoredBinaryPart<'_>) -> String
fn stored_binary_part(&self, part: &StoredBinaryPart<'_>) -> String
A binary part of a result, stored in a file.
Sourcefn json_as_tsv(&self, json: &JsonAsTsv<'_>) -> String
fn json_as_tsv(&self, json: &JsonAsTsv<'_>) -> String
A JSON payload shown as TSV.
Sourcefn folded_code(&self, folded: &str) -> String
fn folded_code(&self, folded: &str) -> String
A folded view of source code, without its trailing newline.
Sourcefn blank_lines(&self, count: usize) -> String
fn blank_lines(&self, count: usize) -> String
A run of count blank lines collapsed into one marker line.
Sourcefn folded_lines(&self, folded: &FoldedLines<'_>) -> String
fn folded_lines(&self, folded: &FoldedLines<'_>) -> String
A block of folded lines.
Sourcefn omitted_lines(&self, omitted: &OmittedLines) -> String
fn omitted_lines(&self, omitted: &OmittedLines) -> String
The lines a preview omits.
Sourcefn repeated_lines(&self, repeated: &RepeatedLines) -> String
fn repeated_lines(&self, repeated: &RepeatedLines) -> String
A run of identical lines a preview collapses.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".