pub struct AppState<'a> { /* private fields */ }Implementations§
Source§impl<'a> AppState<'a>
impl<'a> AppState<'a>
pub fn handle_input_mode(&mut self, key: KeyEvent) -> KeypressResult
pub fn process_confirm_delete_char(&mut self, c: char)
pub fn exit_input_mode(&mut self)
pub fn handle_file_action(&mut self, action: FileAction) -> KeypressResult
pub fn enter_input_mode( &mut self, mode: InputMode, prompt: String, initial: Option<String>, )
Source§impl<'a> AppState<'a>
impl<'a> AppState<'a>
pub fn new(config: &'a Config) -> Result<Self>
pub fn config(&self) -> &Config
pub fn metrics_mut(&mut self) -> &mut LayoutMetrics
pub fn actions(&self) -> &ActionContext
pub fn preview(&self) -> &PreviewState
pub fn parent(&self) -> &ParentState
pub fn notification_time(&self) -> &Option<Instant>
pub fn visible_selected(&self) -> Option<usize>
pub fn has_visible_entries(&self) -> bool
pub fn handle_keypress(&mut self, key: KeyEvent) -> KeypressResult
pub fn request_dir_load(&mut self, focus: Option<OsString>)
pub fn request_preview(&mut self)
pub fn request_parent_content(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for AppState<'a>
impl<'a> RefUnwindSafe for AppState<'a>
impl<'a> Send for AppState<'a>
impl<'a> Sync for AppState<'a>
impl<'a> Unpin for AppState<'a>
impl<'a> UnwindSafe for AppState<'a>
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