Trait sc_light::fetcher::Fetcher [−][src]
Light client data fetcher. Implementations of this trait must check if remote data is correct (see FetchedDataChecker) and return already checked data.
Associated Types
type RemoteHeaderResult: 'static + Send + Unpin + Future
[src]
Remote header future.
type RemoteReadResult: 'static + Send + Unpin + Future
[src]
Remote storage read future.
type RemoteCallResult: 'static + Send + Unpin + Future
[src]
Remote call result future.
type RemoteChangesResult: 'static + Send + Unpin + Future
[src]
Remote changes result future.
type RemoteBodyResult: 'static + Send + Unpin + Future
[src]
Remote block body result future.
Required methods
pub fn remote_header(
&self,
request: RemoteHeaderRequest<<Block as Block>::Header>
) -> Self::RemoteHeaderResult
[src]
&self,
request: RemoteHeaderRequest<<Block as Block>::Header>
) -> Self::RemoteHeaderResult
Fetch remote header.
pub fn remote_read(
&self,
request: RemoteReadRequest<<Block as Block>::Header>
) -> Self::RemoteReadResult
[src]
&self,
request: RemoteReadRequest<<Block as Block>::Header>
) -> Self::RemoteReadResult
Fetch remote storage value.
pub fn remote_read_child(
&self,
request: RemoteReadChildRequest<<Block as Block>::Header>
) -> Self::RemoteReadResult
[src]
&self,
request: RemoteReadChildRequest<<Block as Block>::Header>
) -> Self::RemoteReadResult
Fetch remote storage child value.
pub fn remote_call(
&self,
request: RemoteCallRequest<<Block as Block>::Header>
) -> Self::RemoteCallResult
[src]
&self,
request: RemoteCallRequest<<Block as Block>::Header>
) -> Self::RemoteCallResult
Fetch remote call result.
pub fn remote_changes(
&self,
request: RemoteChangesRequest<<Block as Block>::Header>
) -> Self::RemoteChangesResult
[src]
&self,
request: RemoteChangesRequest<<Block as Block>::Header>
) -> Self::RemoteChangesResult
Fetch remote changes ((block number, extrinsic index)) where given key has been changed at a given blocks range.
pub fn remote_body(
&self,
request: RemoteBodyRequest<<Block as Block>::Header>
) -> Self::RemoteBodyResult
[src]
&self,
request: RemoteBodyRequest<<Block as Block>::Header>
) -> Self::RemoteBodyResult
Fetch remote block body