Skip to main content

TableOperation

Trait TableOperation 

Source
pub trait TableOperation:
    Any
    + Debug
    + Send
    + Sync {
Show 23 methods // Required methods fn name(&self) -> Cow<'_, str>; fn enabled(&self) -> TableOperationEnablement; fn exec( &mut self, ctx: &mut OperationContext<'_, '_>, ) -> Result<(), TableError>; // Provided methods fn icon(&self) -> &'static str { ... } fn get_name(&self, full: bool) -> Cow<'_, str> { ... } fn refresh_on_completion(&self) -> bool { ... } fn pollable(&self) -> bool { ... } fn is_first_page(&self) -> bool { ... } fn is_last_page(&self) -> bool { ... } fn extra_ui( &mut self, _ui: &mut Ui, _data: &mut TableState, ) -> Result<(), TableError> { ... } fn is_pending(&mut self) -> bool { ... } fn just_completed(&mut self) -> bool { ... } fn poll( &mut self, _ui: &mut Ui, _data: &mut TableState, ) -> Result<(), TableError> { ... } fn consume(&mut self) -> Result<(), TableError> { ... } fn error(&self) -> Option<&str> { ... } fn clear_error(&mut self) { ... } fn is_modal_open(&self) -> bool { ... } fn set_modal_open(&mut self, _open: bool) { ... } fn reset(&mut self) { ... } fn pollable_modal( &mut self, ui: &mut Ui, centered: bool, action: Cow<'_, str>, action_progressive: Cow<'_, str>, input_ui: impl FnOnce(&mut Ui, &mut Self) -> Result<(), TableError>, ) -> Result<(), TableError> where Self: Sized { ... } fn polled_modal( &mut self, ui: &mut Ui, heading: Cow<'_, str>, action_progressive: Cow<'_, str>, input_ui: impl FnOnce(&mut Ui, &mut Self) -> Result<(), TableError>, ) -> Result<(), TableError> where Self: Sized { ... } fn poll_allow_execution(&self) -> bool { ... } fn evaluate_enablement( &self, state: &TableState, ) -> (bool, Cow<'static, str>) { ... }
}

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Source

fn enabled(&self) -> TableOperationEnablement

Source

fn exec(&mut self, ctx: &mut OperationContext<'_, '_>) -> Result<(), TableError>

Provided Methods§

Source

fn icon(&self) -> &'static str

Source

fn get_name(&self, full: bool) -> Cow<'_, str>

Source

fn refresh_on_completion(&self) -> bool

Source

fn pollable(&self) -> bool

Source

fn is_first_page(&self) -> bool

Source

fn is_last_page(&self) -> bool

Source

fn extra_ui( &mut self, _ui: &mut Ui, _data: &mut TableState, ) -> Result<(), TableError>

Source

fn is_pending(&mut self) -> bool

Source

fn just_completed(&mut self) -> bool

Source

fn poll( &mut self, _ui: &mut Ui, _data: &mut TableState, ) -> Result<(), TableError>

Routine tick loop, natively fired if pollable() evaluates to true.

Source

fn consume(&mut self) -> Result<(), TableError>

Source

fn error(&self) -> Option<&str>

Source

fn clear_error(&mut self)

Source

fn is_modal_open(&self) -> bool

Source

fn set_modal_open(&mut self, _open: bool)

Source

fn reset(&mut self)

Source

fn pollable_modal( &mut self, ui: &mut Ui, centered: bool, action: Cow<'_, str>, action_progressive: Cow<'_, str>, input_ui: impl FnOnce(&mut Ui, &mut Self) -> Result<(), TableError>, ) -> Result<(), TableError>
where Self: Sized,

Source

fn polled_modal( &mut self, ui: &mut Ui, heading: Cow<'_, str>, action_progressive: Cow<'_, str>, input_ui: impl FnOnce(&mut Ui, &mut Self) -> Result<(), TableError>, ) -> Result<(), TableError>
where Self: Sized,

Source

fn poll_allow_execution(&self) -> bool

Source

fn evaluate_enablement(&self, state: &TableState) -> (bool, Cow<'static, str>)

Evaluates if the operation is enabled based on the current TableState, returning a tuple of (is_enabled, localized_disabled_reason).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§