pub struct Context<'a, 'p, V: Verify, W: Watch, R: Recognizer> {
pub execution: &'p Memory,
pub anchors: &'p [Anchor<'a>],
pub interval: Interval,
pub bounds: Bounds,
pub policy: Policy<'a>,
pub verifier: &'p V,
pub watch: &'p W,
pub recognizer: &'p R,
}Expand description
Everything the search asks of the caller: what is trusted, when, how far to look, what is being asked about, and who answers the questions this crate does not.
One value rather than a row of arguments, because these travel together: a path built against other anchors, or for another interval, is another question rather than the same one asked differently.
Fields§
§execution: &'p MemoryThe current operation’s shared execution and storage domain. Retained certificate accounts never implicitly finance this search.
anchors: &'p [Anchor<'a>]The anchors a path may end at, in the order a report should prefer.
interval: IntervalThe interval the path is built for.
bounds: BoundsHow far the search may go before it stops and says so.
policy: Policy<'a>What the caller is asking about the policies a path was issued under.
verifier: &'p VWho checks a signature.
watch: &'p WWho says the time the caller allowed has passed.
recognizer: &'p RWhich extensions a scheme understands beyond the ones this crate reads, since a critical extension nobody understood is a certificate no path goes through.