Struct aleph_client::SignedConnection
source · pub struct SignedConnection { /* private fields */ }
Expand description
Any connection that is signed by some key.
Implementations§
source§impl SignedConnection
impl SignedConnection
sourcepub async fn new(address: &str, signer: KeyPair) -> Self
pub async fn new(address: &str, signer: KeyPair) -> Self
Creates new signed connection from existing Connection
object.
connection
- existing connectionsigner
- aKeyPair
of signing account
sourcepub fn from_connection(connection: Connection, signer: KeyPair) -> Self
pub fn from_connection(connection: Connection, signer: KeyPair) -> Self
Creates new signed connection from existing Connection
object.
connection
- existing connectionsigner
- aKeyPair
of signing account
Trait Implementations§
source§impl AsSigned for SignedConnection
impl AsSigned for SignedConnection
source§fn as_signed(&self) -> &SignedConnection
fn as_signed(&self) -> &SignedConnection
Allows cast to
SignedConnection
referencesource§impl Clone for SignedConnection
impl Clone for SignedConnection
source§fn clone(&self) -> SignedConnection
fn clone(&self) -> SignedConnection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SignedConnection
impl Send for SignedConnection
impl Sync for SignedConnection
impl Unpin for SignedConnection
impl !UnwindSafe for SignedConnection
Blanket Implementations§
source§impl<C> AlephApi for Cwhere
C: ConnectionApi,
impl<C> AlephApi for Cwhere C: ConnectionApi,
source§impl<C> AlephRpc for Cwhere
C: ConnectionApi,
impl<C> AlephRpc for Cwhere C: ConnectionApi,
source§fn emergency_finalize<'life0, 'async_trait>(
&'life0 self,
number: u32,
hash: H256,
key_pair: Pair
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn emergency_finalize<'life0, 'async_trait>( &'life0 self, number: u32, hash: H256, key_pair: Pair ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Finalize the block with given hash and number using attached signature. Read more
source§impl<C> AlephWaiting for Cwhere
C: AsConnection + Sync,
impl<C> AlephWaiting for Cwhere C: AsConnection + Sync,
source§fn wait_for_block<'life0, 'async_trait, P>(
&'life0 self,
predicate: P,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
P: 'async_trait + Fn(u32) -> bool + Send,
C: 'async_trait,
fn wait_for_block<'life0, 'async_trait, P>( &'life0 self, predicate: P, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, P: 'async_trait + Fn(u32) -> bool + Send, C: 'async_trait,
Wait for a particular block to be in a
BlockStatus
.
Block number must match given predicate. Read moresource§fn wait_for_event<'life0, 'async_trait, T, P>(
&'life0 self,
predicate: P,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
T: 'async_trait + StaticEvent,
P: 'async_trait + Fn(&T) -> bool + Send,
C: 'async_trait,
fn wait_for_event<'life0, 'async_trait, T, P>( &'life0 self, predicate: P, status: BlockStatus ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait, Global>>where 'life0: 'async_trait, T: 'async_trait + StaticEvent, P: 'async_trait + Fn(&T) -> bool + Send, C: 'async_trait,
Wait for a particular event to be emitted on chain. Read more
source§impl<C> AuthorRpc for Cwhere
C: AsConnection + Sync,
impl<C> AuthorRpc for Cwhere C: AsConnection + Sync,
API for
rotate_keys
callsource§impl<C> BalanceApi for Cwhere
C: ConnectionApi,
impl<C> BalanceApi for Cwhere C: ConnectionApi,
source§fn locks_for_account<'life0, 'async_trait>(
&'life0 self,
account: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Vec<BalanceLock<u128>, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn locks_for_account<'life0, 'async_trait>( &'life0 self, account: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<BalanceLock<u128>, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
source§impl<S> BalanceUserApi for Swhere
S: SignedConnectionApi,
impl<S> BalanceUserApi for Swhere S: SignedConnectionApi,
source§fn transfer<'life0, 'async_trait>(
&'life0 self,
dest: AccountId32,
amount: u128,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn transfer<'life0, 'async_trait>( &'life0 self, dest: AccountId32, amount: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
transfer
call.source§fn transfer_with_tip<'life0, 'async_trait>(
&'life0 self,
dest: AccountId32,
amount: u128,
tip: u128,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn transfer_with_tip<'life0, 'async_trait>( &'life0 self, dest: AccountId32, amount: u128, tip: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
transfer
call.
Include tip in the tx.source§impl<S> BalanceUserBatchExtApi for Swhere
S: SignedConnectionApi,
impl<S> BalanceUserBatchExtApi for Swhere S: SignedConnectionApi,
source§fn batch_transfer<'life0, 'life1, 'async_trait>(
&'life0 self,
dests: &'life1 [AccountId32],
amount: u128,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
S: 'async_trait,
fn batch_transfer<'life0, 'life1, 'async_trait>( &'life0 self, dests: &'life1 [AccountId32], amount: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, S: 'async_trait,
Performs batch of
balances.transfer
calls. Read moresource§impl<C> BlocksApi for Cwhere
C: AsConnection + Sync,
impl<C> BlocksApi for Cwhere C: AsConnection + Sync,
source§fn first_block_of_session<'life0, 'async_trait>(
&'life0 self,
session: u32
) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn first_block_of_session<'life0, 'async_trait>( &'life0 self, session: u32 ) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns the first block of a session. Read more
source§fn get_block_hash<'life0, 'async_trait>(
&'life0 self,
block: u32
) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_block_hash<'life0, 'async_trait>( &'life0 self, block: u32 ) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns hash of a given block if the given block exists, otherwise
None
Read moresource§fn get_best_block<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_best_block<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns the most recent block from the current best chain.
source§fn get_finalized_block_hash<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<H256, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_finalized_block_hash<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<H256, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns the most recent block from the finalized chain.
source§fn get_block_number_opt<'life0, 'async_trait>(
&'life0 self,
block: Option<H256>
) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_block_number_opt<'life0, 'async_trait>( &'life0 self, block: Option<H256> ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns number of a given block hash, if the given block exists, otherwise
None
Read moresource§fn get_block_number<'life0, 'async_trait>(
&'life0 self,
block: H256
) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_block_number<'life0, 'async_trait>( &'life0 self, block: H256 ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns number of a given block hash, if the given block exists, otherwise
None
This is version that returns Result
Read moresource§fn get_tx_events<'life0, 'async_trait>(
&'life0 self,
tx_info: TxInfo
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicEvents<WithExtrinsicParams<SubstrateConfig, BaseExtrinsicParams<SubstrateConfig, PlainTip>>>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_tx_events<'life0, 'async_trait>( &'life0 self, tx_info: TxInfo ) -> Pin<Box<dyn Future<Output = Result<ExtrinsicEvents<WithExtrinsicParams<SubstrateConfig, BaseExtrinsicParams<SubstrateConfig, PlainTip>>>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Fetch all events that corresponds to the transaction identified by
tx_info
.§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where Self: TryInto<T>,
source§impl<C> CommitteeManagementApi for Cwhere
C: ConnectionApi + AsConnection,
impl<C> CommitteeManagementApi for Cwhere C: ConnectionApi + AsConnection,
source§fn get_ban_config<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = BanConfig> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_ban_config<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = BanConfig> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
committee-management.ban_config
storage of the committee-management pallet. Read moresource§fn get_validator_block_count<'life0, 'async_trait>(
&'life0 self,
validator: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_validator_block_count<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
committee-management.session_validator_block_count
of a given validator. Read moresource§fn get_underperformed_validator_session_count<'life0, 'async_trait>(
&'life0 self,
validator: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_underperformed_validator_session_count<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
committee-management.underperformed_validator_session_count
storage of a given validator. Read moresource§fn get_ban_reason_for_validator<'life0, 'async_trait>(
&'life0 self,
validator: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<BanReason>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_ban_reason_for_validator<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<BanReason>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
committee-management.banned.reason
storage of a given validator. Read moresource§fn get_ban_info_for_validator<'life0, 'async_trait>(
&'life0 self,
validator: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<BanInfo>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_ban_info_for_validator<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<BanInfo>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
committee-management.banned
storage of a given validator. Read moresource§impl<C> ContractRpc for Cwhere
C: ConnectionApi,
impl<C> ContractRpc for Cwhere C: ConnectionApi,
source§fn call_and_get<'life0, 'async_trait>(
&'life0 self,
args: ContractCallArgs
) -> Pin<Box<dyn Future<Output = Result<ContractResult<Result<ExecReturnValue, DispatchError>, u128>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn call_and_get<'life0, 'async_trait>( &'life0 self, args: ContractCallArgs ) -> Pin<Box<dyn Future<Output = Result<ContractResult<Result<ExecReturnValue, DispatchError>, u128>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
API for
call
call.source§impl<C> ContractsApi for Cwhere
C: ConnectionApi,
impl<C> ContractsApi for Cwhere C: ConnectionApi,
source§impl<S> ContractsUserApi for Swhere
S: SignedConnectionApi,
impl<S> ContractsUserApi for Swhere S: SignedConnectionApi,
source§fn upload_code<'life0, 'async_trait>(
&'life0 self,
code: Vec<u8, Global>,
storage_limit: Option<Compact<u128>>,
determinism: Determinism,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn upload_code<'life0, 'async_trait>( &'life0 self, code: Vec<u8, Global>, storage_limit: Option<Compact<u128>>, determinism: Determinism, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
upload_code
call.source§fn instantiate<'life0, 'async_trait>(
&'life0 self,
code_hash: H256,
balance: u128,
gas_limit: Weight,
storage_limit: Option<Compact<u128>>,
data: Vec<u8, Global>,
salt: Vec<u8, Global>,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn instantiate<'life0, 'async_trait>( &'life0 self, code_hash: H256, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, salt: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
instantiate
call.source§fn instantiate_with_code<'life0, 'async_trait>(
&'life0 self,
code: Vec<u8, Global>,
balance: u128,
gas_limit: Weight,
storage_limit: Option<Compact<u128>>,
data: Vec<u8, Global>,
salt: Vec<u8, Global>,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn instantiate_with_code<'life0, 'async_trait>( &'life0 self, code: Vec<u8, Global>, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, salt: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
instantiate_with_code
call.source§fn call<'life0, 'async_trait>(
&'life0 self,
destination: AccountId32,
balance: u128,
gas_limit: Weight,
storage_limit: Option<Compact<u128>>,
data: Vec<u8, Global>,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn call<'life0, 'async_trait>( &'life0 self, destination: AccountId32, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
call
call.§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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.source§impl<C> ElectionsApi for Cwhere
C: ConnectionApi + AsConnection,
impl<C> ElectionsApi for Cwhere C: ConnectionApi + AsConnection,
source§fn get_committee_seats<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_committee_seats<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
elections.committee_size
storage of the elections pallet. Read moresource§fn get_next_era_committee_seats<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_next_era_committee_seats<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
elections.next_era_committee_seats
storage of the elections pallet. Read moresource§fn get_current_era_validators<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = EraValidators<AccountId32>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_current_era_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = EraValidators<AccountId32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
elections.current_era_validators
storage of the elections pallet. Read moresource§fn get_next_era_reserved_validators<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_next_era_reserved_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
elections.next_era_reserved_validators
storage of the elections pallet. Read moresource§fn get_next_era_non_reserved_validators<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_next_era_non_reserved_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
elections.next_era_non_reserved_validators
storage of the elections pallet. Read more§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<C> MultisigApiExt for Cwhere
C: ConnectionApi,
impl<C> MultisigApiExt for Cwhere C: ConnectionApi,
source§fn get_timepoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
party_account: &'life1 AccountId32,
call_hash: &'life2 [u8; 32],
block_hash: Option<H256>
) -> Pin<Box<dyn Future<Output = Timepoint<u32>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
C: 'async_trait,
fn get_timepoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party_account: &'life1 AccountId32, call_hash: &'life2 [u8; 32], block_hash: Option<H256> ) -> Pin<Box<dyn Future<Output = Timepoint<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, C: 'async_trait,
Get the coordinate that corresponds to the ongoing signature aggregation for
party_account
and call_hash
.source§impl<S> MultisigContextualApi for Swhere
S: SignedConnectionApi,
impl<S> MultisigContextualApi for Swhere S: SignedConnectionApi,
source§fn initiate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
party: &'life1 MultisigParty,
max_weight: &'life2 Weight,
call_hash: [u8; 32],
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
S: 'async_trait,
fn initiate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party: &'life1 MultisigParty, max_weight: &'life2 Weight, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, S: 'async_trait,
Start signature aggregation for
party
and call_hash
. Get Context
object as a result
(together with standard tx coordinates). Read moresource§fn initiate_with_call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
party: &'life1 MultisigParty,
max_weight: &'life2 Weight,
call: RuntimeCall,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
S: 'async_trait,
fn initiate_with_call<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party: &'life1 MultisigParty, max_weight: &'life2 Weight, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, S: 'async_trait,
Start signature aggregation for
party
and call
. Get Context
object as a result
(together with standard tx coordinates). Read moresource§fn approve<'life0, 'async_trait>(
&'life0 self,
context: Context<Ongoing>,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn approve<'life0, 'async_trait>( &'life0 self, context: Context<Ongoing>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
Express contextual approval for the call hash. Read more
source§fn approve_with_call<'life0, 'async_trait>(
&'life0 self,
context: Context<Ongoing>,
call: Option<RuntimeCall>,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn approve_with_call<'life0, 'async_trait>( &'life0 self, context: Context<Ongoing>, call: Option<RuntimeCall>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
Express contextual approval for the
call
. Read moresource§impl<S> MultisigUserApi for Swhere
S: SignedConnectionApi,
impl<S> MultisigUserApi for Swhere S: SignedConnectionApi,
source§fn as_multi_threshold_1<'life0, 'async_trait>(
&'life0 self,
other_signatories: Vec<AccountId32, Global>,
call: RuntimeCall,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn as_multi_threshold_1<'life0, 'async_trait>( &'life0 self, other_signatories: Vec<AccountId32, Global>, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
as_multi_threshold_1
call.source§fn as_multi<'life0, 'async_trait>(
&'life0 self,
threshold: u16,
other_signatories: Vec<AccountId32, Global>,
timepoint: Option<Timepoint<u32>>,
max_weight: Weight,
call: RuntimeCall,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Option<Timepoint<u32>>, max_weight: Weight, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
as_multi
call.source§fn approve_as_multi<'life0, 'async_trait>(
&'life0 self,
threshold: u16,
other_signatories: Vec<AccountId32, Global>,
timepoint: Option<Timepoint<u32>>,
max_weight: Weight,
call_hash: [u8; 32],
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn approve_as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Option<Timepoint<u32>>, max_weight: Weight, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
approve_as_multi
call.source§fn cancel_as_multi<'life0, 'async_trait>(
&'life0 self,
threshold: u16,
other_signatories: Vec<AccountId32, Global>,
timepoint: Timepoint<u32>,
call_hash: [u8; 32],
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn cancel_as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Timepoint<u32>, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
cancel_as_multi
call.§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<C> SessionApi for Cwhere
C: ConnectionApi,
impl<C> SessionApi for Cwhere C: ConnectionApi,
source§fn get_next_session_keys<'life0, 'async_trait>(
&'life0 self,
account: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<SessionKeys>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_next_session_keys<'life0, 'async_trait>( &'life0 self, account: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<SessionKeys>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
API for
next_keys
call.source§impl<C> SessionEraApi for Cwhere
C: AsConnection + Sync,
impl<C> SessionEraApi for Cwhere C: AsConnection + Sync,
source§impl<S> SessionUserApi for Swhere
S: SignedConnectionApi,
impl<S> SessionUserApi for Swhere S: SignedConnectionApi,
source§impl<C> StakingApi for Cwhere
C: ConnectionApi + AsConnection,
impl<C> StakingApi for Cwhere C: ConnectionApi + AsConnection,
source§fn get_active_era<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_active_era<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
active_era
. Read moresource§fn get_current_era<'life0, 'async_trait>(
&'life0 self,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_current_era<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
current_era
. Read moresource§fn get_bonded<'life0, 'async_trait>(
&'life0 self,
stash: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<AccountId32>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_bonded<'life0, 'async_trait>( &'life0 self, stash: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<AccountId32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
source§fn get_ledger<'life0, 'async_trait>(
&'life0 self,
controller: AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = StakingLedger> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_ledger<'life0, 'async_trait>( &'life0 self, controller: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = StakingLedger> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
source§fn get_payout_for_era<'life0, 'async_trait>(
&'life0 self,
era: u32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_payout_for_era<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
eras_validator_reward
for a given era. Read moresource§fn get_exposure<'life0, 'life1, 'async_trait>(
&'life0 self,
era: u32,
account_id: &'life1 AccountId32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Exposure<AccountId32, u128>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
C: 'async_trait,
fn get_exposure<'life0, 'life1, 'async_trait>( &'life0 self, era: u32, account_id: &'life1 AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Exposure<AccountId32, u128>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, C: 'async_trait,
Returns
eras_stakers
for a given era and account id. Read moresource§fn get_era_reward_points<'life0, 'async_trait>(
&'life0 self,
era: u32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Option<EraRewardPoints<AccountId32>>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_era_reward_points<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<EraRewardPoints<AccountId32>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns
eras_reward_points
for a given era. Read moresource§impl<C> StakingRawApi for Cwhere
C: AsConnection + Sync,
impl<C> StakingRawApi for Cwhere C: AsConnection + Sync,
source§fn get_stakers_storage_keys<'life0, 'async_trait>(
&'life0 self,
era: u32,
at: Option<H256>
) -> Pin<Box<dyn Future<Output = Result<Vec<StorageKey, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn get_stakers_storage_keys<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Result<Vec<StorageKey, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns all encoded
eras_stakers
.
storage keys for a given era Read moresource§fn get_stakers_storage_keys_from_accounts<'life0, 'life1, 'async_trait>(
&'life0 self,
era: u32,
accounts: &'life1 [AccountId32],
__arg3: Option<H256>
) -> Pin<Box<dyn Future<Output = Vec<StorageKey, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
C: 'async_trait,
fn get_stakers_storage_keys_from_accounts<'life0, 'life1, 'async_trait>( &'life0 self, era: u32, accounts: &'life1 [AccountId32], __arg3: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<StorageKey, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, C: 'async_trait,
Returns encoded
eras_stakers
.
storage keys for a given era and given account ids Read moresource§impl<S> StakingUserApi for Swhere
S: SignedConnectionApi,
impl<S> StakingUserApi for Swhere S: SignedConnectionApi,
source§fn bond<'life0, 'async_trait>(
&'life0 self,
initial_stake: u128,
controller_id: AccountId32,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn bond<'life0, 'async_trait>( &'life0 self, initial_stake: u128, controller_id: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
bond
call.source§fn validate<'life0, 'async_trait>(
&'life0 self,
validator_commission_percentage: u8,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn validate<'life0, 'async_trait>( &'life0 self, validator_commission_percentage: u8, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
validate
call.source§fn payout_stakers<'life0, 'async_trait>(
&'life0 self,
stash_account: AccountId32,
era: u32,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn payout_stakers<'life0, 'async_trait>( &'life0 self, stash_account: AccountId32, era: u32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
payout_stakers
call.source§fn nominate<'life0, 'async_trait>(
&'life0 self,
nominee_account_id: AccountId32,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn nominate<'life0, 'async_trait>( &'life0 self, nominee_account_id: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
nominate
call.source§impl<C> SystemApi for Cwhere
C: ConnectionApi,
impl<C> SystemApi for Cwhere C: ConnectionApi,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§impl<C> TransactionPaymentApi for Cwhere
C: ConnectionApi,
impl<C> TransactionPaymentApi for Cwhere C: ConnectionApi,
source§impl<C> TreasureApiExt for Cwhere
C: AsConnection + Sync,
impl<C> TreasureApiExt for Cwhere C: AsConnection + Sync,
source§impl<C> TreasuryApi for Cwhere
C: ConnectionApi,
impl<C> TreasuryApi for Cwhere C: ConnectionApi,
source§fn treasury_account<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = AccountId32> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn treasury_account<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = AccountId32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Returns an unique account id for all treasury transfers.
source§impl<S> TreasuryUserApi for Swhere
S: SignedConnectionApi,
impl<S> TreasuryUserApi for Swhere S: SignedConnectionApi,
source§fn propose_spend<'life0, 'async_trait>(
&'life0 self,
amount: u128,
beneficiary: AccountId32,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn propose_spend<'life0, 'async_trait>( &'life0 self, amount: u128, beneficiary: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
propose_spend
call.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.source§impl<S> UtilityApi for Swhere
S: SignedConnectionApi,
impl<S> UtilityApi for Swhere S: SignedConnectionApi,
source§impl<C> VestingApi for Cwhere
C: ConnectionApi,
impl<C> VestingApi for Cwhere C: ConnectionApi,
source§impl<S> VestingUserApi for Swhere
S: SignedConnectionApi,
impl<S> VestingUserApi for Swhere S: SignedConnectionApi,
source§fn vest<'life0, 'async_trait>(
&'life0 self,
status: TxStatus
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn vest<'life0, 'async_trait>( &'life0 self, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
vest
call.source§fn vest_other<'life0, 'async_trait>(
&'life0 self,
status: TxStatus,
other: AccountId32
) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
S: 'async_trait,
fn vest_other<'life0, 'async_trait>( &'life0 self, status: TxStatus, other: AccountId32 ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,
API for
vest_other
call.source§impl<C> WaitingExt for Cwhere
C: AsConnection + Sync,
impl<C> WaitingExt for Cwhere C: AsConnection + Sync,
source§fn wait_for_n_sessions<'life0, 'async_trait>(
&'life0 self,
n: u32,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn wait_for_n_sessions<'life0, 'async_trait>( &'life0 self, n: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Wait for a given number of sessions to wait from a current session.
n
- number of sessions to wait from now Read moresource§fn wait_for_n_eras<'life0, 'async_trait>(
&'life0 self,
n: u32,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
C: 'async_trait,
fn wait_for_n_eras<'life0, 'async_trait>( &'life0 self, n: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,
Wait for a given number of eras to wait from a current era.
n
- number of eras to wait from now Read more