pub struct App {
pub sessions: Vec<Session>,
pub filtered: Vec<usize>,
pub selected: usize,
pub preview_scroll: usize,
pub search_query: String,
pub search_active: bool,
pub mode: Mode,
pub provider_filter: ProviderFilter,
pub confirm_delete: bool,
pub should_quit: bool,
pub resume_session: Option<String>,
}Fields§
§sessions: Vec<Session>§filtered: Vec<usize>§selected: usize§preview_scroll: usize§search_query: String§search_active: bool§mode: Mode§provider_filter: ProviderFilter§confirm_delete: bool§should_quit: bool§resume_session: Option<String>Implementations§
Source§impl App
impl App
pub fn new(sessions: Vec<Session>) -> Self
pub fn selected_session(&self) -> Option<&Session>
pub fn move_up(&mut self)
pub fn move_down(&mut self)
pub fn scroll_preview_up(&mut self)
pub fn scroll_preview_down(&mut self)
pub fn resume_selected(&mut self)
pub fn delete_selected(&mut self)
pub fn enter_search(&mut self)
pub fn exit_search(&mut self)
pub fn clear_search(&mut self)
pub fn search_input(&mut self, c: char)
pub fn search_backspace(&mut self)
pub fn cycle_provider_filter(&mut self)
pub fn apply_filter(&mut self)
pub fn build_preview_lines(&self) -> Vec<PreviewLine>
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin 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