Struct account_state::backend::ProofCheck [−][src]
A raw backend used to check proofs of execution.
This doesn’t delete anything since execution proofs won’t have mangled keys and we want to avoid collisions.
Implementations
impl ProofCheck[src]
pub fn new(proof: &[DBValue]) -> Self[src]
Create a new ProofCheck backend from the given state items.
Trait Implementations
impl AsHashDB<KeccakHasher, Vec<u8, Global>> for ProofCheck[src]
fn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>[src]
fn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>[src]
impl Backend for ProofCheck[src]
fn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>[src]
fn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>[src]
fn add_to_account_cache(
&mut self,
_addr: Address,
_data: Option<Account>,
_modified: bool
)[src]
&mut self,
_addr: Address,
_data: Option<Account>,
_modified: bool
)
fn cache_code(&self, _hash: H256, _code: Arc<Vec<u8>>)[src]
fn get_cached_account(&self, _addr: &Address) -> Option<Option<Account>>[src]
fn get_cached<F, U>(&self, _a: &Address, _f: F) -> Option<U> where
F: FnOnce(Option<&mut Account>) -> U, [src]
F: FnOnce(Option<&mut Account>) -> U,
fn get_cached_code(&self, _hash: &H256) -> Option<Arc<Vec<u8>>>[src]
fn note_non_null_account(&self, _address: &Address)[src]
fn is_known_null(&self, _address: &Address) -> bool[src]
impl Clone for ProofCheck[src]
fn clone(&self) -> ProofCheck[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl HashDB<KeccakHasher, Vec<u8, Global>> for ProofCheck[src]
fn get(&self, key: &H256, prefix: Prefix<'_>) -> Option<DBValue>[src]
fn contains(&self, key: &H256, prefix: Prefix<'_>) -> bool[src]
fn insert(&mut self, prefix: Prefix<'_>, value: &[u8]) -> H256[src]
fn emplace(&mut self, key: H256, prefix: Prefix<'_>, value: DBValue)[src]
fn remove(&mut self, _key: &H256, _prefix: Prefix<'_>)[src]
impl PartialEq<ProofCheck> for ProofCheck[src]
fn eq(&self, other: &ProofCheck) -> bool[src]
fn ne(&self, other: &ProofCheck) -> bool[src]
impl StructuralPartialEq for ProofCheck[src]
Auto Trait Implementations
impl RefUnwindSafe for ProofCheck
impl Send for ProofCheck
impl Sync for ProofCheck
impl Unpin for ProofCheck
impl UnwindSafe for ProofCheck
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,