pub struct App {Show 17 fields
pub screen: Screen,
pub store: ArticleStore,
pub filter_params: FilterParams,
pub filtered_indices: Vec<usize>,
pub selected: usize,
pub scroll_offset: usize,
pub article_content: Option<String>,
pub article_title: Option<String>,
pub article_url: Option<String>,
pub loading: bool,
pub should_quit: bool,
pub status_message: Option<String>,
pub layout_areas: LayoutAreas,
pub list_state: ListState,
pub last_refresh: Instant,
pub auto_refresh_interval: Option<Duration>,
pub content_cache: HashMap<String, String>,
}Fields§
§screen: Screen§store: ArticleStore§filter_params: FilterParams§filtered_indices: Vec<usize>§selected: usize§scroll_offset: usize§article_content: Option<String>§article_title: Option<String>§article_url: Option<String>§loading: bool§should_quit: bool§status_message: Option<String>§layout_areas: LayoutAreas§list_state: ListState§last_refresh: Instant§auto_refresh_interval: Option<Duration>§content_cache: HashMap<String, String>Implementations§
Source§impl App
impl App
pub fn new(store: ArticleStore, filter_params: FilterParams) -> Self
pub fn current_article(&self) -> Option<&Article>
pub fn filtered_len(&self) -> usize
pub fn move_down(&mut self)
pub fn move_up(&mut self)
pub fn select(&mut self, index: usize)
pub fn clamp_scroll(&mut self, visible_height: usize)
pub fn scroll_down(&mut self, visible_height: usize)
pub fn scroll_up(&mut self)
pub fn scroll_page_down(&mut self, page_height: usize, visible_height: usize)
pub fn scroll_page_up(&mut self, page_height: usize)
pub fn selected_url(&self) -> Option<&str>
pub fn show_article(&mut self, title: String, url: String, content: String)
pub fn has_prev_article(&self) -> bool
pub fn has_next_article(&self) -> bool
pub fn select_prev_article(&mut self)
pub fn select_next_article(&mut self)
pub fn close_article(&mut self)
pub fn toggle_read_filter(&mut self)
pub fn is_showing_read(&self) -> bool
pub fn mark_current_read(&mut self)
pub fn toggle_current_read(&mut self)
pub fn should_auto_refresh(&self) -> bool
pub fn reset_refresh_timer(&mut self)
pub fn rebuild_filtered_list(&mut self)
pub fn get_cached_content(&self, url: &str) -> Option<&String>
pub fn cache_content(&mut self, url: String, content: String)
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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