#[non_exhaustive]pub enum Answer {
Receipt(Vec<u8>),
NotCovered {
fault: Option<Fault>,
},
}Expand description
The answer to “the value of this cell as of A”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Receipt(Vec<u8>)
The receipt that answers, canonical JSON text: for a stored cell the publisher’s receipt as the store holds it; for a computed cell one signed by the engine.
NotCovered
Nothing answers as of A, and no receipt is given.
fault: None: the function is unknown then, a stored cell has no version answering
then, or a computed cell reads such an input. fault: Some(code): the cell is a
computed cell whose evaluation faulted (SPEC 15.12): it has no value, deterministically
(the envelope’s fault, SPEC 5.5). Since 0.3.0 the variant carries fault.
Implementations§
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Forget for Answer
impl Freeze for Answer
impl Move for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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