pub struct App {Show 22 fields
pub stories: Vec<NewsStory>,
pub ticker_stories: Vec<NewsStory>,
pub selected: usize,
pub should_quit: bool,
pub is_loading: bool,
pub is_refreshing: bool,
pub is_offline: bool,
pub error_message: Option<String>,
pub ticker_index: usize,
pub ticker_counter: u32,
pub mode: AppMode,
pub current_feed: Feed,
pub feed_menu_selected: usize,
pub show_preview: bool,
pub humanize_dates: bool,
pub image_protocol: ImageProtocol,
pub theme: Theme,
pub show_full_article: bool,
pub article_scroll_offset: usize,
pub is_fetching_article: bool,
pub sort_order: SortOrder,
pub last_refresh_time: Instant,
/* private fields */
}Fields§
§stories: Vec<NewsStory>§ticker_stories: Vec<NewsStory>§selected: usize§should_quit: bool§is_loading: bool§is_refreshing: bool§is_offline: bool§error_message: Option<String>§ticker_index: usize§ticker_counter: u32§mode: AppMode§current_feed: Feed§show_preview: bool§humanize_dates: bool§image_protocol: ImageProtocol§theme: Theme§show_full_article: bool§article_scroll_offset: usize§is_fetching_article: bool§sort_order: SortOrder§last_refresh_time: InstantImplementations§
Source§impl App
impl App
pub fn new(theme: Theme) -> Self
pub fn next(&mut self)
pub fn previous(&mut self)
pub fn scroll_to_bottom(&mut self)
pub fn scroll_to_top(&mut self)
pub fn open_selected(&mut self) -> Result<()>
pub fn open_selected_new_tab(&mut self) -> Result<()>
pub fn quit(&mut self)
pub fn update_stories(&mut self, stories: Vec<NewsStory>)
pub fn update_ticker_stories(&mut self, stories: Vec<NewsStory>)
pub fn set_error(&mut self, error: String)
pub fn clear_error(&mut self)
pub fn tick(&mut self) -> bool
pub fn toggle_preview(&mut self)
pub fn toggle_date_format(&mut self)
pub fn cycle_image_protocol(&mut self)
pub fn select_feed(&mut self, feed: Feed)
pub fn fetch_and_show_article(&mut self)
pub fn toggle_article_view(&mut self)
pub fn scroll_article_up(&mut self)
pub fn scroll_article_down(&mut self)
pub fn get_current_article_text(&self) -> Option<&String>
pub fn cycle_theme(&mut self)
pub fn cycle_sort_order(&mut self)
pub fn check_auto_refresh(&self) -> bool
pub fn mark_refreshed(&mut self)
pub fn jump_to_ticker_article(&mut self) -> bool
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> 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