Skip to main content

QueueEntryAlg

Trait QueueEntryAlg 

Source
pub trait QueueEntryAlg {
    // Required methods
    fn label(&self) -> &str;
    fn source(&self) -> &str;
    fn phase(&self) -> TransferPhase;
    fn dry_run(&self) -> Option<bool>;
    fn stated_command(&self) -> Option<String>;
    fn output(&self) -> Option<&Path>;
    fn output_naming(&self) -> OutputNaming;
    fn is_editable(&self) -> bool;
    fn detail_controls(&self) -> Vec<DetailControl>;
    fn space_action(&self) -> Option<SpaceAction>;
    fn download_log(&self) -> impl Iterator<Item = &str>;
}
Expand description

Specifies the queue-entry observations used by manager derivations.

Required Methods§

Source

fn label(&self) -> &str

Observes the submitted source until extraction supplies a title, and that title after.

Source

fn source(&self) -> &str

Observes the source the request was submitted with.

Source

fn phase(&self) -> TransferPhase

Observes the lifecycle phase the request has reached.

Source

fn dry_run(&self) -> Option<bool>

Observes the rehearsal mode, and that the request has none when it has none.

Source

fn stated_command(&self) -> Option<String>

Observes exactly what an interpreter would run to perform the request.

A request an interpreter performs by naming a program states that program and everything it would be given, so a reader sees what pressing Space does before pressing it. A request retrieved by fetching states nothing here: there is no command to read.

Source

fn output(&self) -> Option<&Path>

Observes the explicit output path when present.

Source

fn output_naming(&self) -> OutputNaming

Observes how the output is named, which decides what an edited name is taken to be.

Source

fn is_editable(&self) -> bool

Observes whether request choices remain editable.

Source

fn detail_controls(&self) -> Vec<DetailControl>

Derives visible details controls from transfer state.

Source

fn space_action(&self) -> Option<SpaceAction>

Derives the currently valid meaning of Space.

Source

fn download_log(&self) -> impl Iterator<Item = &str>

Observes the notes stated about this request, in the order they were stated.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§