pub enum Usefulness {
Useful,
Stale,
Irrelevant,
Incorrect,
}
Expand description
An indication of how useful a query was. This is advisory information for the network subsystem that returned the query.
Variants§
Useful
The received entry is correct and useful to the query maker.
Stale
The received entry is correct and relevant to the query, but a newer entry was received that makes this one useless.
Irrelevant
The received entry is correct, but the content was irrelevant. This is slightly worse than stale: the query maker can’t figure out why it would’ve received this data, even if it is technically correct. Think search results that don’t contain any of the search terms, a query for cat pictures but the returned picture isn’t of a cat, that sort of thing.
Incorrect
The received entry was incorrect - despite conforming to the schema, it violated expectations. Example: a 2D image format where the data length doesn’t match up with the width & height values included in the format.