[−][src]Enum sc_client::light::backend::GenesisOrUnavailableState
Either in-memory genesis state, or locally-unavailable state.
Variants
Genesis(InMemoryBackend<H>)
Genesis state - storage values are stored in-memory.
We know that state exists, but all calls will fail with error, because it isn't locally available.
Trait Implementations
impl<H: Hasher> Backend<H> for GenesisOrUnavailableState<H> where
H::Out: Ord + Codec,
[src]
H::Out: Ord + Codec,
type Error = ClientError
An error type when fetching data is not possible.
type Transaction = <InMemoryBackend<H> as StateBackend<H>>::Transaction
Storage changes to be applied if committing
type TrieBackendStorage = <InMemoryBackend<H> as StateBackend<H>>::TrieBackendStorage
Type of trie backend storage.
fn storage(&self, key: &[u8]) -> ClientResult<Option<Vec<u8>>>
[src]
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> ClientResult<Option<Vec<u8>>>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> ClientResult<Option<Vec<u8>>>
fn next_storage_key(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Self::Error>
[src]
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
fn for_keys_with_prefix<A: FnMut(&[u8])>(&self, prefix: &[u8], action: A)
[src]
fn for_key_values_with_prefix<A: FnMut(&[u8], &[u8])>(
&self,
prefix: &[u8],
action: A
)
[src]
&self,
prefix: &[u8],
action: A
)
fn for_keys_in_child_storage<A: FnMut(&[u8])>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
action: A
)
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
action: A
)
fn for_child_keys_with_prefix<A: FnMut(&[u8])>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
action: A
)
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
action: A
)
fn storage_root<I>(&self, delta: I) -> (H::Out, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
[src]
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (H::Out, bool, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (H::Out, bool, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
[src]
fn keys(&self, prefix: &[u8]) -> Vec<Vec<u8>>
[src]
fn register_overlay_stats(&mut self, _stats: &StateMachineStats)
[src]
fn usage_info(&self) -> UsageInfo
[src]
fn as_trie_backend(
&mut self
) -> Option<&TrieBackend<Self::TrieBackendStorage, H>>
[src]
&mut self
) -> Option<&TrieBackend<Self::TrieBackendStorage, H>>
fn storage_hash(
&self,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
fn child_storage_hash(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
fn exists_storage(&self, key: &[u8]) -> Result<bool, Self::Error>
[src]
fn exists_child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<bool, Self::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<bool, Self::Error>
fn child_keys(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
fn full_storage_root<I1, I2i, I2>(
&self,
delta: I1,
child_deltas: I2
) -> (<H as Hasher>::Out, Self::Transaction) where
I1: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
I2: IntoIterator<Item = (Vec<u8>, I2i, OwnedChildInfo)>,
I2i: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Encode,
[src]
&self,
delta: I1,
child_deltas: I2
) -> (<H as Hasher>::Out, Self::Transaction) where
I1: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
I2: IntoIterator<Item = (Vec<u8>, I2i, OwnedChildInfo)>,
I2i: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Encode,
fn wipe(&self) -> Result<(), Self::Error>
[src]
fn commit(
&self,
_storage_root: <H as Hasher>::Out,
_transaction: Self::Transaction
) -> Result<(), Self::Error>
[src]
&self,
_storage_root: <H as Hasher>::Out,
_transaction: Self::Transaction
) -> Result<(), Self::Error>
impl<H: Hasher> Debug for GenesisOrUnavailableState<H>
[src]
Auto Trait Implementations
impl<H> RefUnwindSafe for GenesisOrUnavailableState<H> where
H: RefUnwindSafe,
<H as Hasher>::Out: RefUnwindSafe,
H: RefUnwindSafe,
<H as Hasher>::Out: RefUnwindSafe,
impl<H> Send for GenesisOrUnavailableState<H> where
<H as Hasher>::Out: Send,
<H as Hasher>::Out: Send,
impl<H> Sync for GenesisOrUnavailableState<H> where
<H as Hasher>::Out: Sync,
<H as Hasher>::Out: Sync,
impl<H> Unpin for GenesisOrUnavailableState<H> where
H: Unpin,
<H as Hasher>::Out: Unpin,
H: Unpin,
<H as Hasher>::Out: Unpin,
impl<H> UnwindSafe for GenesisOrUnavailableState<H> where
H: UnwindSafe,
<H as Hasher>::Out: UnwindSafe,
H: UnwindSafe,
<H as Hasher>::Out: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,