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>;
fn new() -> Self
where Self: Sized;
// 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)
where Self: Sized { ... }
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 { ... }
}Required Methods§
fn name(&self) -> Cow<'_, str>
fn enabled(&self) -> TableOperationEnablement
fn exec(&mut self, ctx: &mut OperationContext<'_, '_>) -> Result<(), TableError>
fn new() -> Selfwhere
Self: Sized,
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
Sourcefn poll(
&mut self,
_ui: &mut Ui,
_data: &mut TableState,
) -> Result<(), TableError>
fn poll( &mut self, _ui: &mut Ui, _data: &mut TableState, ) -> Result<(), TableError>
Routine tick loop, natively fired if pollable() evaluates to true.
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)where
Self: Sized,
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".