pub fn try_update_view(&mut self) {
        let query = match self.get_search_text_view_mut() {
            None => return,
            Some(view) => view.get_text(),
        };
        while let Ok(matched_stories) = self.receiver.try_recv() {
            // got a `matched_stories` result but only care about the one matching current state
            if query == matched_stories.query
                && self.page == matched_stories.page
                && self.by_date == matched_stories.by_date
            {
                self.update_stories_view(matched_stories.stories);
            }
        }
    }
/// tries to update the Story View representing matched stories based on
/// the results from previous query requests
tries to update the Story View representing matched stories based on
the results from previous query requests
tries to update the Story View representing matched stories based on the results from previous query requests
pub fn try_update_view(&mut self) {
        let query = match self.get_search_text_view_mut() {
            None => return,
            Some(view) => view.get_text(),
        };
        while let Ok(matched_stories) = self.receiver.try_recv() {
            // got a `matched_stories` result but only care about the one matching current state
            if query == matched_stories.query
                && self.page == matched_stories.page
                && self.by_date == matched_stories.by_date
            {
                self.update_stories_view(matched_stories.stories);
            }
        }
    }
pub fn try_update_view ( & mut self ) { let query = match self . get_search_text_view_mut ( ) { None => return , Some ( view ) => view . get_text ( ) , } ; while let Ok ( matched_stories ) = self . receiver . try_recv ( ) { // got a `matched_stories` result but only care about the one matching current state if query == matched_stories . query && self . page == matched_stories . page && self . by_date == matched_stories . by_date { self . update_stories_view ( matched_stories . stories ) ; } } }
tries to update the Story View representing matched stories based on
the results from previous query requests
tries to update the Story View representing matched stories based on the results from previous query requests
&mut self