pub fn fetch_search<T: Transport>(
client: &Client<T>,
search: &Search,
now_s: u64,
) -> Result<(SearchAnswer, Fetched), ThrustCurveError>Expand description
Runs a search through client.
The answer comes from the client’s cache while fresh (see source); offline, from the cache
only. The Fetched says which, carries ATTRIBUTION and holds the body. Only an answer
that parse_search reads is cached (Client::fetch_checked): one that doesn’t never takes
a good copy’s place, and online a stale good copy is returned instead, with the reason.
§Errors
ThrustCurveError::Net when the fetch fails, or with NetError::Refused naming what the
parser refused when the only answer there is doesn’t parse.