Skip to main content

RefusalCheck

Type Alias RefusalCheck 

Source
pub type RefusalCheck = fn(&str) -> bool;
Expand description

Whether a failing response’s body says the venue will never serve this request, such as a chain it does not price. A refusal is a FeedError::Fatal rather than the retryable FeedError::Connection, since another attempt gets the same answer. Every fetch here takes one, because what a failing status means is the venue’s to say and not this module’s.

A plain fn, so the verdict rests on what the venue said and on nothing else.