Struct sc_rpc::author::gen_client::Client [−][src]
pub struct Client<Hash, BlockHash> { /* fields omitted */ }
Expand description
The Client.
Implementations
impl<Hash, BlockHash> Client<Hash, BlockHash> where
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
BlockHash: Send + Sync + 'static + DeserializeOwned,
impl<Hash, BlockHash> Client<Hash, BlockHash> where
Hash: Send + Sync + 'static + DeserializeOwned + Serialize,
BlockHash: Send + Sync + 'static + DeserializeOwned,
pub fn submit_extrinsic(
&self,
extrinsic: Bytes
) -> impl Future<Item = Hash, Error = RpcError>
pub fn submit_extrinsic(
&self,
extrinsic: Bytes
) -> impl Future<Item = Hash, Error = RpcError>
Submit hex-encoded extrinsic for inclusion in block.
Insert a key into the keystore.
Generate new session keys and returns the corresponding public keys.
pub fn has_session_keys(
&self,
session_keys: Bytes
) -> impl Future<Item = bool, Error = RpcError>
pub fn has_session_keys(
&self,
session_keys: Bytes
) -> impl Future<Item = bool, Error = RpcError>
Checks if the keystore has private keys for the given session public keys.
session_keys
is the SCALE encoded session keys object from the runtime.
Returns true
iff all private keys could be found.
Checks if the keystore has private keys for the given public key and key type.
Returns true
if a private key could be found.
Returns all pending extrinsics, potentially grouped by sender.
pub fn remove_extrinsic(
&self,
bytes_or_hash: Vec<ExtrinsicOrHash<Hash>, Global>
) -> impl Future<Item = Vec<Hash, Global>, Error = RpcError>
pub fn remove_extrinsic(
&self,
bytes_or_hash: Vec<ExtrinsicOrHash<Hash>, Global>
) -> impl Future<Item = Vec<Hash, Global>, Error = RpcError>
Remove given extrinsic from the pool and temporarily ban it to prevent reimporting.
pub fn watch_extrinsic(
&self,
bytes: Bytes
) -> impl Future<Item = TypedSubscriptionStream<TransactionStatus<Hash, BlockHash>>, Error = RpcError>
pub fn watch_extrinsic(
&self,
bytes: Bytes
) -> impl Future<Item = TypedSubscriptionStream<TransactionStatus<Hash, BlockHash>>, Error = RpcError>
Submit an extrinsic to watch.
See TransactionStatus
for details on transaction
life cycle.
Trait Implementations
Auto Trait Implementations
impl<Hash, BlockHash> !RefUnwindSafe for Client<Hash, BlockHash>
impl<Hash, BlockHash> !UnwindSafe for Client<Hash, BlockHash>
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
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches 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