Skip to main content

ShellWording

Trait ShellWording 

Source
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§

Source

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.

Source

fn job_input(&self, sent: &JobInputSent<'_>) -> String

A job’s stdin was written.

Source

fn job_kill(&self, kill: &JobKillAsked<'_>) -> String

A kill of a job was asked for.

Source

fn call_refused(&self, refusal: &CallRefusal) -> String

A call of a tool of the shell refused before it ran.

Source

fn run_failure(&self, failure: &RunFailure<'_>) -> String

A call or run that failed before or while it ran.

Source

fn monitor_refusal(&self, refusal: &MonitorRefusal) -> String

A monitor call refused before anything started.

Source

fn monitor_started(&self, started: &MonitorStarted<'_>) -> String

The result of a monitor call that started watching.

Source

fn command_killed(&self, killed: &CommandKilled<'_>) -> String

Why a command was killed, appended to its result.

Source

fn output_saved(&self, saved: &OutputSaved<'_>) -> String

A text output replaced by its preview and the file holding all of it.

Source

fn stored_binary_part(&self, part: &StoredBinaryPart<'_>) -> String

A binary part of a result, stored in a file.

Source

fn json_as_tsv(&self, json: &JsonAsTsv<'_>) -> String

A JSON payload shown as TSV.

Source

fn folded_code(&self, folded: &str) -> String

A folded view of source code, without its trailing newline.

Source

fn blank_lines(&self, count: usize) -> String

A run of count blank lines collapsed into one marker line.

Source

fn folded_lines(&self, folded: &FoldedLines<'_>) -> String

A block of folded lines.

Source

fn omitted_lines(&self, omitted: &OmittedLines) -> String

The lines a preview omits.

Source

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".

Implementors§