Struct sc_rpc_api::child_state::ChildStateClient [−][src]
The Client.
Implementations
impl<Hash> Client<Hash> where
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
[src][−]
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
pub fn new(sender: RpcChannel) -> Self
[src][−]
Creates a new Client
.
pub fn storage_keys(
&self,
child_storage_key: PrefixedStorageKey,
prefix: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Vec<StorageKey>, Error = RpcError>
[src][−]
&self,
child_storage_key: PrefixedStorageKey,
prefix: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Vec<StorageKey>, Error = RpcError>
Returns the keys with prefix from a child storage, leave empty to get all the keys
pub fn storage(
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<StorageData>, Error = RpcError>
[src][−]
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<StorageData>, Error = RpcError>
Returns a child storage entry at a specific block’s state.
pub fn storage_hash(
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<Hash>, Error = RpcError>
[src][−]
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<Hash>, Error = RpcError>
Returns the hash of a child storage entry at a block’s state.
pub fn storage_size(
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<u64>, Error = RpcError>
[src][−]
&self,
child_storage_key: PrefixedStorageKey,
key: StorageKey,
hash: Option<Hash>
) -> impl Future<Item = Option<u64>, Error = RpcError>
Returns the size of a child storage entry at a block’s state.
Trait Implementations
impl<Hash: Clone> Clone for Client<Hash>
[src][+]
impl<Hash> From<RpcChannel> for Client<Hash> where
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
[src][+]
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
Auto Trait Implementations
impl<Hash> !RefUnwindSafe for Client<Hash>
impl<Hash> Send for Client<Hash> where
Hash: Send,
Hash: Send,
impl<Hash> Sync for Client<Hash> where
Hash: Sync,
Hash: Sync,
impl<Hash> Unpin for Client<Hash> where
Hash: Unpin,
Hash: Unpin,
impl<Hash> !UnwindSafe for Client<Hash>
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,
impl<T> CheckedConversion for T
[src][+]
impl<T> DynClone for T where
T: Clone,
[src][+]
T: Clone,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument 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
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src][+]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src][+]
T: UncheckedFrom<S>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src][+]
T: Bounded,
S: TryInto<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,