Skip to main content

fetch_whole_search

Function fetch_whole_search 

Source
pub fn fetch_whole_search<T: Transport>(
    client: &Client<T>,
    search: &Search,
    now_s: u64,
) -> Result<(SearchAnswer, Fetched), ThrustCurveError>
Expand description

Fetches a search through client, as fetch_search does, refusing an answer cut short by its maxResults (SearchAnswer::is_complete): it is never cached, so it can’t take a whole answer’s place, and online a stale whole copy is returned instead, with the reason.

§Errors

As fetch_search; with NetError::Refused naming ThrustCurveError::Incomplete for a search cut short and no whole copy cached.