pub struct Recording<'a> { /* private fields */ }Expand description
A Resolver that forwards to another and records each call, in order.
Implementations§
Trait Implementations§
Source§impl Resolver for Recording<'_>
impl Resolver for Recording<'_>
Source§fn descriptor(&self, fn_hash: &str) -> Option<Cow<'_, [u8]>>
fn descriptor(&self, fn_hash: &str) -> Option<Cow<'_, [u8]>>
The descriptor JSON text offered for
fn_hash, or None if unavailable
(E_FN_UNAVAILABLE).Source§fn receipt(&self, hash: &str) -> Option<Cow<'_, [u8]>>
fn receipt(&self, hash: &str) -> Option<Cow<'_, [u8]>>
The receipt JSON text offered for receipt hash
hash, or None if unavailable
(E_INPUT_UNAVAILABLE).Source§fn evaluate(&self, cell: &Cell, asof: &str) -> Option<Scalar>
fn evaluate(&self, cell: &Cell, asof: &str) -> Option<Scalar>
The value of evaluating
cell as of asof (for stored: the value looked up as of it,
SPEC 10.1 step 7.6), or None if this resolver cannot evaluate it: no runtime for the
language, a budget exceeded, inputs the evaluator cannot obtain
(E_EVAL_UNAVAILABLE, see VerifyResult). asof is the receipt’s asof.Auto Trait Implementations§
impl<'a> !Freeze for Recording<'a>
impl<'a> !RefUnwindSafe for Recording<'a>
impl<'a> !Send for Recording<'a>
impl<'a> !Sync for Recording<'a>
impl<'a> !UnwindSafe for Recording<'a>
impl<'a> Unpin for Recording<'a>
impl<'a> UnsafeUnpin for Recording<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more