pub struct EvidenceLedger { /* private fields */ }Implementations§
Source§impl EvidenceLedger
impl EvidenceLedger
pub fn new() -> Self
Sourcepub fn without_semantic_witnesses(self) -> Self
pub fn without_semantic_witnesses(self) -> Self
Build a ledger that does not record semantic witnesses. Used by the public arithmetic convenience methods that discard their ledger, so the AACE witness fingerprint (a sha256 over the index) is not computed when nothing will read it. Observable operation output is unaffected.
Sourcepub fn records_semantic_witnesses(&self) -> bool
pub fn records_semantic_witnesses(&self) -> bool
Whether this ledger records AACE semantic witnesses (default true).
pub fn push(&mut self, record: DecisionRecord)
pub fn push_semantic_witness(&mut self, record: SemanticWitnessRecord)
pub fn records(&self) -> &[DecisionRecord]
pub fn semantic_witnesses(&self) -> &[SemanticWitnessRecord]
Trait Implementations§
Source§impl Clone for EvidenceLedger
impl Clone for EvidenceLedger
Source§fn clone(&self) -> EvidenceLedger
fn clone(&self) -> EvidenceLedger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvidenceLedger
impl Debug for EvidenceLedger
Source§impl Default for EvidenceLedger
impl Default for EvidenceLedger
Source§impl<'de> Deserialize<'de> for EvidenceLedger
impl<'de> Deserialize<'de> for EvidenceLedger
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EvidenceLedger
impl PartialEq for EvidenceLedger
Source§fn eq(&self, other: &EvidenceLedger) -> bool
fn eq(&self, other: &EvidenceLedger) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EvidenceLedger
impl Serialize for EvidenceLedger
impl StructuralPartialEq for EvidenceLedger
Auto Trait Implementations§
impl Freeze for EvidenceLedger
impl RefUnwindSafe for EvidenceLedger
impl Send for EvidenceLedger
impl Sync for EvidenceLedger
impl Unpin for EvidenceLedger
impl UnsafeUnpin for EvidenceLedger
impl UnwindSafe for EvidenceLedger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more