pub struct App {Show 15 fields
pub running: bool,
pub state: State,
pub search: String,
pub command: String,
pub page: Option<DetailedPage>,
pub selected_page: Option<usize>,
pub search_results: Vec<SearchElement<u64>>,
pub list_state: ListState,
pub scroll: u16,
pub bottom_text: String,
pub searcher: Searcher,
pub base_path: PathBuf,
pub meta_path: PathBuf,
pub bztable: BZipTable,
pub last_key: Option<KeyCode>,
}
Fields§
§running: bool
§state: State
§search: String
§command: String
§page: Option<DetailedPage>
§selected_page: Option<usize>
§search_results: Vec<SearchElement<u64>>
§list_state: ListState
§scroll: u16
§bottom_text: String
§searcher: Searcher
§base_path: PathBuf
§meta_path: PathBuf
§bztable: BZipTable
§last_key: Option<KeyCode>
Implementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn set_state(&mut self, state: State)
pub fn tick(&self)
pub fn execute_command(&mut self)
pub fn quit(&mut self)
pub fn search(&mut self)
pub fn get_page(&mut self)
pub fn unselect(&mut self)
pub fn previous(&mut self)
pub fn next(&mut self)
pub fn up(&mut self, n: u16)
pub fn down(&mut self, n: u16)
pub fn left(&mut self)
pub fn right(&mut self)
pub fn before_key_event(&mut self, _key_event: &KeyEvent)
pub fn after_key_event(&mut self, key_event: &KeyEvent)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe 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