pub trait ManagerIntent {
type Id;
type Source;
type Format;
type Change;
Show 38 methods
// Required methods
fn add_sources(&self, requests: Vec<Self::Source>);
fn set_draft(&self, draft: String);
fn insert_text(&self, text: String);
fn set_output_draft(&self, draft: String);
fn set_input_draft(&self, draft: String);
fn source_metadata(
&self,
id: Self::Id,
media_id: String,
title: Option<String>,
);
fn format_catalog(
&self,
id: Self::Id,
event: FormatDiscoveryOp<Self::Format>,
);
fn rehearsal(
&self,
id: Self::Id,
event: RehearsalObservationOp<Self::Change>,
);
fn transfer(&self, id: Self::Id, event: TransferObservationOp);
fn open_add_sources(&self);
fn submit_draft(&self);
fn delete_before_cursor(&self);
fn delete_at_cursor(&self);
fn move_cursor_left(&self);
fn move_cursor_right(&self);
fn move_cursor_home(&self);
fn move_cursor_end(&self);
fn select_previous(&self);
fn select_next(&self);
fn open_selected(&self);
fn select_previous_detail(&self);
fn select_next_detail(&self);
fn activate_detail(&self);
fn open_formats(&self);
fn open_output(&self);
fn open_input(&self);
fn submit_input(&self);
fn open_report(&self);
fn toggle_dry_run(&self);
fn submit_output(&self);
fn back(&self);
fn apply_selected_space(&self);
fn select_previous_format(&self);
fn select_next_format(&self);
fn duplicate_selected(&self);
fn remove_selected(&self);
fn restart_selected(&self);
fn safe_exit_requested(&self);
}Expand description
Defines the first-order intent stream one manager interprets.
An intention is a method, so the reified stream is generated from this vocabulary rather than written out. An interpreter states what each intention means and never restates the shape.
Required Associated Types§
Required Methods§
Sourcefn add_sources(&self, requests: Vec<Self::Source>)
fn add_sources(&self, requests: Vec<Self::Source>)
Adds explicit source requests to the collection.
Sourcefn insert_text(&self, text: String)
fn insert_text(&self, text: String)
Inserts text at the active editor cursor.
Sourcefn set_output_draft(&self, draft: String)
fn set_output_draft(&self, draft: String)
Replaces the output-file-name editor draft.
Sourcefn set_input_draft(&self, draft: String)
fn set_input_draft(&self, draft: String)
Replaces the input editor draft.
Sourcefn source_metadata(&self, id: Self::Id, media_id: String, title: Option<String>)
fn source_metadata(&self, id: Self::Id, media_id: String, title: Option<String>)
Supplies extracted identity and title observations.
Sourcefn format_catalog(&self, id: Self::Id, event: FormatDiscoveryOp<Self::Format>)
fn format_catalog(&self, id: Self::Id, event: FormatDiscoveryOp<Self::Format>)
Applies one format-discovery observation to a stable queue identity.
Sourcefn rehearsal(&self, id: Self::Id, event: RehearsalObservationOp<Self::Change>)
fn rehearsal(&self, id: Self::Id, event: RehearsalObservationOp<Self::Change>)
Applies one rehearsal observation to a stable queue identity.
Sourcefn transfer(&self, id: Self::Id, event: TransferObservationOp)
fn transfer(&self, id: Self::Id, event: TransferObservationOp)
Applies one transfer observation to a stable queue identity.
Sourcefn open_add_sources(&self)
fn open_add_sources(&self)
Opens the add-sources editor.
Sourcefn submit_draft(&self)
fn submit_draft(&self)
Submits newline-separated sources from the editor draft.
Sourcefn delete_before_cursor(&self)
fn delete_before_cursor(&self)
Deletes the Unicode scalar before the active editor cursor.
Sourcefn delete_at_cursor(&self)
fn delete_at_cursor(&self)
Deletes the Unicode scalar at the active editor cursor.
Sourcefn move_cursor_left(&self)
fn move_cursor_left(&self)
Moves the active editor cursor left by one Unicode scalar.
Sourcefn move_cursor_right(&self)
fn move_cursor_right(&self)
Moves the active editor cursor right by one Unicode scalar.
Sourcefn move_cursor_home(&self)
fn move_cursor_home(&self)
Moves the active editor cursor to its logical line beginning.
Sourcefn move_cursor_end(&self)
fn move_cursor_end(&self)
Moves the active editor cursor to its logical line end.
Sourcefn select_previous(&self)
fn select_previous(&self)
Selects the preceding collection entry with wraparound.
Sourcefn select_next(&self)
fn select_next(&self)
Selects the following collection entry with wraparound.
Sourcefn open_selected(&self)
fn open_selected(&self)
Expands details for the selected entry while preserving row focus.
Sourcefn select_previous_detail(&self)
fn select_previous_detail(&self)
Selects the preceding visible details control.
Sourcefn select_next_detail(&self)
fn select_next_detail(&self)
Selects the following visible details control.
Sourcefn activate_detail(&self)
fn activate_detail(&self)
Activates the selected control, or collapses details while the row has focus.
Sourcefn open_formats(&self)
fn open_formats(&self)
Opens the concrete-format selector for the selected editable entry.
Sourcefn open_output(&self)
fn open_output(&self)
Opens output-file-name editing for the selected editable entry.
Sourcefn open_input(&self)
fn open_input(&self)
Opens input editing for the selected entry, while its input may still be changed.
Sourcefn submit_input(&self)
fn submit_input(&self)
Applies the input editor draft.
Sourcefn open_report(&self)
fn open_report(&self)
Opens the report of what the selected request would do.
Sourcefn toggle_dry_run(&self)
fn toggle_dry_run(&self)
Turns the rehearsal mode of the selected request on or off.
Sourcefn submit_output(&self)
fn submit_output(&self)
Applies the normalized output-file-name editor draft.
Sourcefn apply_selected_space(&self)
fn apply_selected_space(&self)
Applies the selected entry’s currently valid space action.
Sourcefn select_previous_format(&self)
fn select_previous_format(&self)
Selects the preceding compatible format choice.
Sourcefn select_next_format(&self)
fn select_next_format(&self)
Selects the following compatible format choice.
Sourcefn duplicate_selected(&self)
fn duplicate_selected(&self)
Duplicates the selected source as a fresh editable request.
Sourcefn remove_selected(&self)
fn remove_selected(&self)
Removes the selected entry.
Sourcefn restart_selected(&self)
fn restart_selected(&self)
Marks the selected failed entry as waiting with its fixed options.
Sourcefn safe_exit_requested(&self)
fn safe_exit_requested(&self)
Requests exit after active work reaches a safe boundary.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".