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§
Sourcefn label(&self) -> &str
fn label(&self) -> &str
Observes the submitted source until extraction supplies a title, and that title after.
Sourcefn phase(&self) -> TransferPhase
fn phase(&self) -> TransferPhase
Observes the lifecycle phase the request has reached.
Sourcefn dry_run(&self) -> Option<bool>
fn dry_run(&self) -> Option<bool>
Observes the rehearsal mode, and that the request has none when it has none.
Sourcefn stated_command(&self) -> Option<String>
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.
Sourcefn output_naming(&self) -> OutputNaming
fn output_naming(&self) -> OutputNaming
Observes how the output is named, which decides what an edited name is taken to be.
Sourcefn is_editable(&self) -> bool
fn is_editable(&self) -> bool
Observes whether request choices remain editable.
Sourcefn detail_controls(&self) -> Vec<DetailControl>
fn detail_controls(&self) -> Vec<DetailControl>
Derives visible details controls from transfer state.
Sourcefn space_action(&self) -> Option<SpaceAction>
fn space_action(&self) -> Option<SpaceAction>
Derives the currently valid meaning of Space.
Sourcefn download_log(&self) -> impl Iterator<Item = &str>
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".