Struct sc_network::config::OnDemand [−][src]
pub struct OnDemand<B: BlockT> { /* fields omitted */ }
Expand description
Implements the Fetcher trait of the client. Makes it possible for the light client to perform
network requests for some state.
This implementation stores all the requests in a queue. The network, in parallel, is then responsible for pulling elements out of that queue and fulfilling them.
Implementations
Creates new on-demand service.
Get checker reference.
Trait Implementations
type RemoteHeaderResult = RemoteResponse<B::Header>
type RemoteHeaderResult = RemoteResponse<B::Header>Remote header future.
Remote storage read future.
type RemoteCallResult = RemoteResponse<Vec<u8>>
type RemoteCallResult = RemoteResponse<Vec<u8>>Remote call result future.
type RemoteBodyResult = RemoteResponse<Vec<B::Extrinsic>>
type RemoteBodyResult = RemoteResponse<Vec<B::Extrinsic>>Remote block body result future.
Fetch remote header.
Fetch remote storage value.
fn remote_read_child(
&self,
request: RemoteReadChildRequest<B::Header>
) -> Self::RemoteReadResult
fn remote_read_child(
&self,
request: RemoteReadChildRequest<B::Header>
) -> Self::RemoteReadResultFetch remote storage child value.
Fetch remote call result.
fn remote_changes(
&self,
request: RemoteChangesRequest<B::Header>
) -> Self::RemoteChangesResult
fn remote_changes(
&self,
request: RemoteChangesRequest<B::Header>
) -> Self::RemoteChangesResultFetch remote changes ((block number, extrinsic index)) where given key has been changed at a given blocks range. Read more
Fetch remote block body
Auto Trait Implementations
impl<B> !RefUnwindSafe for OnDemand<B>impl<B> !UnwindSafe for OnDemand<B>Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more