Struct sp_state_machine::ProvingBackendRecorder
source · [−]pub struct ProvingBackendRecorder<'a, S: 'a + TrieBackendStorage<H>, H: 'a + Hasher> { /* private fields */ }
Expand description
Patricia trie-based backend specialized in get value proofs.
Implementations
sourceimpl<'a, S, H> ProvingBackendRecorder<'a, S, H> where
S: TrieBackendStorage<H>,
H: Hasher,
H::Out: Codec,
impl<'a, S, H> ProvingBackendRecorder<'a, S, H> where
S: TrieBackendStorage<H>,
H: Hasher,
H::Out: Codec,
sourcepub fn storage(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>, String>
pub fn storage(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>, String>
Produce proof for a key query.
sourcepub fn child_storage(
&mut self,
child_info: &ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, String>
pub fn child_storage(
&mut self,
child_info: &ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, String>
Produce proof for a child key query.
sourcepub fn record_all_keys(&mut self)
pub fn record_all_keys(&mut self)
Produce proof for the whole backend.
Auto Trait Implementations
impl<'a, S, H> RefUnwindSafe for ProvingBackendRecorder<'a, S, H> where
S: RefUnwindSafe,
<H as Hasher>::Out: RefUnwindSafe,
impl<'a, S, H> Send for ProvingBackendRecorder<'a, S, H>
impl<'a, S, H> Sync for ProvingBackendRecorder<'a, S, H>
impl<'a, S, H> Unpin for ProvingBackendRecorder<'a, S, H>
impl<'a, S, H> !UnwindSafe for ProvingBackendRecorder<'a, S, H>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.