Skip to main content

ManagerIntent

Trait ManagerIntent 

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

Source

type Id

Represents one stable queue identity.

Source

type Source

Represents one submitted source.

Source

type Format

Represents one selectable format description.

Source

type Change

Represents one change a rehearsal states.

Required Methods§

Source

fn add_sources(&self, requests: Vec<Self::Source>)

Adds explicit source requests to the collection.

Source

fn set_draft(&self, draft: String)

Replaces the editor draft.

Source

fn insert_text(&self, text: String)

Inserts text at the active editor cursor.

Source

fn set_output_draft(&self, draft: String)

Replaces the output-file-name editor draft.

Source

fn set_input_draft(&self, draft: String)

Replaces the input editor draft.

Source

fn source_metadata(&self, id: Self::Id, media_id: String, title: Option<String>)

Supplies extracted identity and title observations.

Source

fn format_catalog(&self, id: Self::Id, event: FormatDiscoveryOp<Self::Format>)

Applies one format-discovery observation to a stable queue identity.

Source

fn rehearsal(&self, id: Self::Id, event: RehearsalObservationOp<Self::Change>)

Applies one rehearsal observation to a stable queue identity.

Source

fn transfer(&self, id: Self::Id, event: TransferObservationOp)

Applies one transfer observation to a stable queue identity.

Source

fn open_add_sources(&self)

Opens the add-sources editor.

Source

fn submit_draft(&self)

Submits newline-separated sources from the editor draft.

Source

fn delete_before_cursor(&self)

Deletes the Unicode scalar before the active editor cursor.

Source

fn delete_at_cursor(&self)

Deletes the Unicode scalar at the active editor cursor.

Source

fn move_cursor_left(&self)

Moves the active editor cursor left by one Unicode scalar.

Source

fn move_cursor_right(&self)

Moves the active editor cursor right by one Unicode scalar.

Source

fn move_cursor_home(&self)

Moves the active editor cursor to its logical line beginning.

Source

fn move_cursor_end(&self)

Moves the active editor cursor to its logical line end.

Source

fn select_previous(&self)

Selects the preceding collection entry with wraparound.

Source

fn select_next(&self)

Selects the following collection entry with wraparound.

Source

fn open_selected(&self)

Expands details for the selected entry while preserving row focus.

Source

fn select_previous_detail(&self)

Selects the preceding visible details control.

Source

fn select_next_detail(&self)

Selects the following visible details control.

Source

fn activate_detail(&self)

Activates the selected control, or collapses details while the row has focus.

Source

fn open_formats(&self)

Opens the concrete-format selector for the selected editable entry.

Source

fn open_output(&self)

Opens output-file-name editing for the selected editable entry.

Source

fn open_input(&self)

Opens input editing for the selected entry, while its input may still be changed.

Source

fn submit_input(&self)

Applies the input editor draft.

Source

fn open_report(&self)

Opens the report of what the selected request would do.

Source

fn toggle_dry_run(&self)

Turns the rehearsal mode of the selected request on or off.

Source

fn submit_output(&self)

Applies the normalized output-file-name editor draft.

Source

fn back(&self)

Navigates to the parent page.

Source

fn apply_selected_space(&self)

Applies the selected entry’s currently valid space action.

Source

fn select_previous_format(&self)

Selects the preceding compatible format choice.

Source

fn select_next_format(&self)

Selects the following compatible format choice.

Source

fn duplicate_selected(&self)

Duplicates the selected source as a fresh editable request.

Source

fn remove_selected(&self)

Removes the selected entry.

Source

fn restart_selected(&self)

Marks the selected failed entry as waiting with its fixed options.

Source

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

Implementors§