pub struct App {
pub config: Config,
pub search_fields: SearchFields,
pub searcher: Option<Searcher>,
pub input_source: InputSource,
pub run_config: AppRunConfig,
pub event_channels: EventChannels,
pub ui_state: UIState,
/* private fields */
}Fields§
§config: Config§search_fields: SearchFields§searcher: Option<Searcher>§input_source: InputSource§run_config: AppRunConfig§event_channels: EventChannels§ui_state: UIStateImplementations§
Source§impl<'a> App
impl<'a> App
pub fn new( input_source: InputSource, search_field_values: &SearchFieldValues<'a>, app_run_config: AppRunConfig, config: Config, ) -> Result<Self>
pub fn set_file_content_provider( &mut self, provider: Arc<dyn FileContentProvider>, )
pub fn handle_internal_event( &mut self, event: InternalEvent, ) -> EventHandlingResult
pub fn cancel_in_progress_tasks(&mut self)
pub fn reset(&mut self)
pub async fn event_recv(&mut self) -> Event
pub fn background_processing_reciever( &mut self, ) -> Option<&mut UnboundedReceiver<BackgroundProcessingEvent>>
Sourcepub fn perform_search_background(&mut self)
pub fn perform_search_background(&mut self)
Called when searching in the background e.g. when entering chars into the search field: does not show error popup if there are validation errors
pub fn perform_replacement(&mut self)
pub fn handle_background_processing_event( &mut self, event: BackgroundProcessingEvent, ) -> EventHandlingResult
pub fn handle_key_event(&mut self, key_event: KeyEvent) -> EventHandlingResult
pub fn current_search_key(&self) -> SearchKey
pub fn validate_fields(&mut self) -> Result<Option<Searcher>>
pub fn show_popup(&self) -> bool
pub fn popup(&self) -> Option<&Popup>
pub fn errors(&self) -> Vec<AppError>
pub fn add_error(&mut self, error: AppError)
pub fn toast_message(&self) -> Option<&str>
pub fn keymaps_all(&self) -> Vec<(String, String)>
pub fn keymaps_compact(&self) -> Vec<(String, String)>
pub fn search_has_completed(&self) -> bool
pub fn is_preview_updated(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more