Struct gdev_runtime::Runtime

source ·
pub struct Runtime;

Implementations§

source§

impl Runtime

source

pub(crate) fn metadata_ir() -> MetadataIR

source

pub fn metadata() -> RuntimeMetadataPrefixed

source

pub fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

source

pub fn metadata_versions() -> Vec<u32>

Trait Implementations§

source§

impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime

source§

fn account_nonce(account: AccountId) -> Index

Get current account nonce of given AccountId.
source§

impl AuthorityDiscoveryApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn authorities() -> Vec<AuthorityId>

Retrieve authority identifiers of the current and next authority set.
source§

impl BabeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn configuration() -> BabeConfiguration

Return the configuration for BABE.
source§

fn current_epoch_start() -> Slot

Returns the slot that started the current epoch.
source§

fn current_epoch() -> Epoch

Returns information regarding the current epoch.
source§

fn next_epoch() -> Epoch

Returns information regarding the next epoch (which was already previously announced).
source§

fn generate_key_ownership_proof( _slot: Slot, authority_id: AuthorityId ) -> Option<OpaqueKeyOwnershipProof>

Generates a proof of key ownership for the given authority in the current epoch. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a slot as parameter the current implementations ignores this parameter and instead relies on this method being called at the correct block height, i.e. any point at which the epoch for the given slot is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available.
source§

fn submit_report_equivocation_unsigned_extrinsic( equivocation_proof: EquivocationProof<<Block as BlockT>::Header>, key_owner_proof: OpaqueKeyOwnershipProof ) -> Option<()>

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context.
source§

impl BenchmarkV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn benchmark_metadata(extra: bool) -> (Vec<BenchmarkList>, Vec<StorageInfo>)

Get the benchmark metadata available for this runtime. Read more
source§

fn dispatch_benchmark( config: BenchmarkConfig ) -> Result<Vec<BenchmarkBatch>, RuntimeString>

Dispatch the given benchmark.
source§

impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn apply_extrinsic( extrinsic: <Block as BlockT>::Extrinsic ) -> ApplyExtrinsicResult

Apply the given extrinsic. Read more
source§

fn finalize_block() -> <Block as BlockT>::Header

Finish the current block.
source§

fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>

Generate inherent extrinsics. The inherent data will vary from chain to chain.
source§

fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult

Check that the inherents are valid. The inherent data will vary from chain to chain.
source§

impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller

source§

fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>

Extract the signer from the message if it is a Signed origin.
source§

fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>

Extract a reference to the system-level RawOrigin if it is that.
§

fn as_signed(&self) -> Option<&AccountId>

Extract the signer from it if a system Signed origin, None otherwise.
§

fn is_root(&self) -> bool

Returns true if self is a system Root origin, None otherwise.
§

fn is_none(&self) -> bool

Returns true if self is a system None origin, None otherwise.
source§

impl Clone for Runtime

source§

fn clone(&self) -> Runtime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The event type of this module.
§

type KeyOwnerProof = <Pallet<Runtime> as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof

The proof of key ownership, used for validating equivocation reports The proof include the session index and validator count of the session at which the equivocation occurred.
§

type EquivocationReportSystem = EquivocationReportSystem<Runtime, Pallet<Runtime>, Pallet<Runtime>, ReportLongevity>

The equivocation handling subsystem, defines methods to check/report an offence and for submitting a transaction to report an equivocation (from an offchain context).
§

type WeightInfo = WeightInfo<Runtime>

Weights for this pallet.
§

type MaxAuthorities = MaxAuthorities

Max Authorities in use
§

type MaxSetIdSessionEntries = MaxSetIdSessionEntries

The maximum number of entries to keep in the set id to session index mapping. Read more
§

type MaxNominators = ConstU32<64>

The maximum number of nominators for each validator.
source§

impl Config for Runtime

§

type Moment = u64

Type used for expressing a timestamp.
§

type OnTimestampSet = (Pallet<Runtime>, Pallet<Runtime>)

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
§

type MinimumPeriod = MinimumPeriod

The minimum period between blocks. Read more
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type Balance = u64

The type for recording an account’s balance.

§

type RuntimeHoldReason = ()

The overarching hold reason.
§

type RuntimeFreezeReason = ()

The overarching freeze reason.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type MaxLocks = MaxLocks

The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation.
§

type MaxReserves = ConstU32<5>

The maximum number of named reserves that can exist on an account.
§

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
§

type DustRemoval = HandleDust

Handler for the unbalanced reduction when removing a dust account.
§

type ExistentialDeposit = ExistentialDeposit

The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! Read more
§

type AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
§

type FreezeIdentifier = ()

The ID type for freezes.
§

type MaxFreezes = ConstU32<0>

The maximum number of individual freeze locks that can exist on an account at any time.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
§

type InnerOnChargeTransaction = CurrencyAdapter<Pallet<Runtime>, HandleFees>

wrapped type
§

type Refund = Pallet<Runtime>

type implementing refund behavior
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

Because this pallet emits events, it depends on the runtime’s definition of an event.
§

type ReloadRate = ReloadRate

number of blocks in which max quota is replenished
§

type MaxQuota = MaxQuota

maximum amount of quota an identity can get
§

type RefundAccount = TreasuryAccountId

Account used to refund fee
§

type WeightInfo = WeightInfo<Runtime>

Weight
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type Currency = Pallet<Runtime>

The currency mechanism.
§

type DepositBase = DepositBase

The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later. Read more
§

type DepositFactor = DepositFactor

The amount of currency needed per unit threshold when creating a multisig execution. Read more
§

type MaxSignatories = MaxSignatories

The maximum amount of signatories allowed in the multisig.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnChargeTransaction = Pallet<Runtime>

Handler for withdrawing, refunding and depositing the transaction fee. Transaction fees are withdrawn before the transaction is executed. After the transaction was executed the transaction weight can be adjusted, depending on the used resources by the transaction. If the transaction weight is lower than expected, parts of the transaction fee might be refunded. In the end the fees can be deposited.
§

type OperationalFeeMultiplier = ConstU8<5>

A fee multiplier for Operational extrinsics to compute “virtual tip” to boost their priority Read more
§

type WeightToFee = WeightToFeeImpl<u64>

Convert a weight value into a deductible fee based on the currency type.
§

type LengthToFee = LengthToFeeImpl<u64>

Convert a length value into a deductible fee based on the currency type.
§

type FeeMultiplierUpdate = ConstFeeMultiplier<FeeMultiplier>

Update the multiplier of the next block, based on the previous block’s weight.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Call = RuntimeCall

The overarching call type.
§

type UpgradableOrigin = EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>

The upgradable origin
§

type WeightInfo = WeightInfo<Runtime>

Pallet weights info
§

type WorstCaseOriginType = RawOrigin<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>

The worst case origin type to use in weights benchmarking
§

type WorstCaseOrigin = WorstCaseOrigin

The worst case origin to use in weights benchmarking
source§

impl Config for Runtime

§

type BaseCallFilter = BaseCallFilter

The basic call filter to use in dispatchable.

§

type BlockWeights = BlockWeights

Block & extrinsics weights: base values and limits.

§

type BlockLength = BlockLength

The maximum length of a block (in bytes).

§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

The identifier used to distinguish between accounts.

§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

§

type Lookup = AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>

The lookup mechanism to get account ID from whatever is passed in dispatchers.

§

type Hash = H256

The type for hashing blocks and tries.

§

type Hashing = BlakeTwo256

The hashing algorithm used.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

§

type BlockHashCount = BlockHashCount

Maximum number of block number to block hash mappings to keep (oldest pruned first).

§

type DbWeight = ParityDbWeight

The weight of database operations that the runtime can invoke.

§

type Version = Version

Version of the runtime.

§

type PalletInfo = PalletInfo

Converts a module to the index of the module in construct_runtime!.

This type is being generated by construct_runtime!.

§

type OnNewAccount = ()

What to do if a new account is created.

§

type OnKilledAccount = ()

What to do if an account is fully reaped from the system.

§

type AccountData = AccountData<u64, u32>

The data to be stored in an account.

§

type SystemWeightInfo = WeightInfo<Runtime>

Weight information for the extrinsics of this pallet.

§

type SS58Prefix = SS58Prefix

This is used as an identifier of the chain. 42 is the generic substrate prefix.

§

type OnSetCode = ()

The set code logic, just the default since we’re not a parachain.

§

type Nonce = u32

The type for storing how many extrinsics an account has signed.

§

type Block = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>

The block type for the runtime.

§

type MaxConsumers = ConstU32<16>

The maximum number of consumers allowed on a single account.
§

type RuntimeTask = ()

The aggregated RuntimeTask type.
§

type SingleBlockMigrations = ()

All migrations that should run in the next runtime upgrade. Read more
§

type MultiBlockMigrator = ()

The migrator that is used to run Multi-Block-Migrations. Read more
§

type PreInherents = ()

A callback that executes in every block directly before all inherents were applied. Read more
§

type PostInherents = ()

A callback that executes in every block directly after all inherents were applied. Read more
§

type PostTransactions = ()

A callback that executes in every block directly after all transactions were applied. Read more
source§

impl Config for Runtime

§

type FullIdentification = ValidatorFullIdentification

Full identification of the validator.
§

type FullIdentificationOf = FullIdentificationOfImpl

A conversion from validator ID to full identification. Read more
source§

impl Config for Runtime

§

type MaxAuthorities = MaxAuthorities

The maximum number of authorities that can be added.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

The Weight information for this pallet.
§

type Currency = Pallet<Runtime>

Currency type for this pallet.
§

type ManagerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

An origin that can request a preimage be placed on-chain without a deposit or fee, or manage existing preimages.
§

type Consideration = ()

A means of providing some cost while data is stored on-chain.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Currency = Pallet<Runtime>

§

type GetCurrentEpochIndex = GetCurrentEpochIndex<Runtime>

Get the current epoch index
§

type MaxRequests = ConstU32<100>

Maximum number of not yet filled requests
§

type RequestPrice = ConstU64<2000>

The price of a request
§

type OnFilledRandomness = ()

On filled randomness
§

type OnUnbalanced = Pallet<Runtime>

Handler for the unbalanced reduction when the requestor pays fees.
§

type ParentBlockRandomness = ParentBlockRandomness<Runtime>

A safe source of randomness from the parent block
§

type RandomnessFromOneEpochAgo = RandomnessFromOneEpochAgo<Runtime>

A safe source of randomness from one epoch ago
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type EpochDuration = BabeEpochDuration<Runtime>

The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production.
§

type ExpectedBlockTime = ExpectedBlockTime

The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter c (where 1 - c represents the probability of a slot being empty).
§

type EpochChangeTrigger = ExternalTrigger

BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch. Read more
§

type DisabledValidators = Pallet<Runtime>

A way to check whether a given validator is disabled and should not be authoring blocks. Blocks authored by a disabled validator will lead to a panic as part of this module’s initialization.
§

type KeyOwnerProof = <Pallet<Runtime> as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof

The proof of key ownership, used for validating equivocation reports. The proof must include the session index and validator count of the session at which the equivocation occurred.
§

type EquivocationReportSystem = EquivocationReportSystem<Runtime, Pallet<Runtime>, Pallet<Runtime>, ReportLongevity>

The equivocation handling subsystem, defines methods to check/report an offence and for submitting a transaction to report an equivocation (from an offchain context).
§

type WeightInfo = WeightInfo<Runtime>

Helper for weights computations
§

type MaxAuthorities = MaxAuthorities

Max number of authorities allowed
§

type MaxNominators = MaxNominators

The maximum number of nominators for each validator.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type Currency = Pallet<Runtime>

The currency mechanism.
§

type ProxyType = ProxyType

A kind of proxy; specified with the proxy and passed in to the IsProxyable fitler. The instance filter determines whether a given call may be proxied under this type. Read more
§

type ProxyDepositBase = ProxyDepositBase

The base amount of currency needed to reserve for creating a proxy. Read more
§

type ProxyDepositFactor = ProxyDepositFactor

The amount of currency needed per proxy added. Read more
§

type MaxProxies = ConstU32<32>

The maximum amount of proxies allowed for a single account.
§

type MaxPending = ConstU32<32>

The maximum amount of time-delayed announcements that are allowed to be pending.
§

type CallHasher = BlakeTwo256

The type of hash used for hashing the call.
§

type AnnouncementDepositBase = AnnouncementDepositBase

The base amount of currency needed to reserve for creating an announcement. Read more
§

type AnnouncementDepositFactor = AnnouncementDepositFactor

The amount of currency needed per announcement made. Read more
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type CertPeriod = CertPeriod<Runtime>

Minimum duration between two certifications issued by the same issuer.
§

type IdtyIndex = u32

A short identity index.
§

type IdtyAttr = Pallet<Runtime>

Something that gives the IdtyId of an AccountId and reverse
§

type CheckCertAllowed = Pallet<Runtime>

Provide method to check that cert is allowed.
§

type MaxByIssuer = CertMaxByIssuer<Runtime>

Maximum number of active certifications by issuer.
§

type MinReceivedCertToBeAbleToIssueCert = CertMinReceivedCertToIssueCert<Runtime>

Minimum number of certifications received to be allowed to issue a certification.
§

type OnNewcert = Pallet<Runtime>

Handler for NewCert event.
§

type OnRemovedCert = Pallet<Runtime>

Handler for Removed event.
§

type RuntimeEvent = RuntimeEvent

Because this pallet emits events, it depends on the runtime’s definition of an event.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
§

type ValidityPeriod = CertValidityPeriod<Runtime>

Duration of validity of a certification.
source§

impl Config for Runtime

§

type MomentIntoBalance = ConvertInto

§

type Currency = Pallet<Runtime>

§

type RuntimeEvent = RuntimeEvent

Because this pallet emits events, it depends on the runtime’s definition of an event.
§

type MaxPastReeval = ConstU32<160>

Maximum number of past UD revaluations to keep in storage.
§

type MembersCount = MembersCount

Somethings that must provide the number of accounts allowed to create the universal dividend
§

type MembersStorage = UdMembersStorage<Runtime>

Somethings that must provide the list of accounts ids allowed to create the universal dividend
§

type SquareMoneyGrowthRate = SquareMoneyGrowthRate

Square of the money growth rate per ud reevaluation period
§

type UdCreationPeriod = UdCreationPeriod<Runtime>

Universal dividend creation period (ms)
§

type UdReevalPeriod = UdReevalPeriod<Runtime>

Universal dividend reevaluation period (ms)
§

type UnitsPerUd = ConstU64<1000>

The number of units to divide the amounts expressed in number of UDs Example: If you wish to express the UD amounts with a maximum precision of the order of the milliUD, choose 1000
§

type WeightInfo = WeightInfo<Runtime>

Pallet weights info
§

type AccountIdOf = IdentityAccountIdProvider<Runtime>

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type ApproveOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 1, 2>>

Origin from which approvals must come.
§

type Burn = Burn

Percentage of spare funds (if any) that are burnt per spend period.
§

type BurnDestination = ()

Handler for the unbalanced decrease when treasury funds are burned.
§

type Currency = Pallet<Runtime>

The staking balance.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnSlash = Pallet<Runtime>

Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
§

type ProposalBond = ProposalBond

Fraction of a proposal’s value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not.
§

type ProposalBondMinimum = ConstU64<10000>

Minimum amount of funds that should be placed in a deposit for making a proposal.
§

type ProposalBondMaximum = ProposalBondMaximum

Maximum amount of funds that should be placed in a deposit for making a proposal.
§

type MaxApprovals = ConstU32<100>

The maximum number of approvals that can wait in the spending queue. Read more
§

type PalletId = TreasuryPalletId

The treasury’s pallet id, used for deriving its sovereign account ID.
§

type RejectOrigin = EnsureProportionMoreThan<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 1, 3>

Origin from which rejections must come.
§

type SpendFunds = TreasurySpendFunds<Runtime>

Runtime hooks to external pallet using treasury to compute spend funds.
§

type SpendPeriod = SpendPeriod

Period between successive spends.
§

type SpendOrigin = NeverEnsureOrigin<u64>

The origin required for approving spends from the treasury outside of the proposal process. The Success value is the maximum amount in a native asset that this origin is allowed to spend at a time.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
§

type AssetKind = ()

Type parameter representing the asset kinds to be spent from the treasury.
§

type Beneficiary = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

Type parameter used to identify the beneficiaries eligible to receive treasury spends.
§

type BeneficiaryLookup = AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>

Converting trait to take a source type and convert to Self::Beneficiary.
§

type Paymaster = PayFromAccount<Pallet<Runtime>, TreasuryAccount>

Type for processing spends of Self::AssetKind in favor of Self::Beneficiary.
§

type BalanceConverter = UnityAssetBalanceConversion

Type for converting the balance of an Self::AssetKind to the balance of the native asset, solely for the purpose of asserting the result against the maximum allowed spend amount of the Self::SpendOrigin.
§

type PayoutPeriod = ConstU32<10>

The period during which an approved treasury spend has to be claimed.
§

type BenchmarkHelper = ()

Helper type for benchmarks.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeOrigin = RuntimeOrigin

The aggregated origin which the dispatch will take.
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type RuntimeCall = RuntimeCall

The aggregated call type.
§

type MaximumWeight = MaximumSchedulerWeight

The maximum weight that may be scheduled per block for any dispatchables.
§

type ScheduleOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Required origin to schedule or cancel calls.
§

type OriginPrivilegeCmp = EqualPrivilegeOnly

Compare the privileges of origins. Read more
§

type MaxScheduledPerBlock = MaxScheduledPerBlock

The maximum number of scheduled calls in the queue for a single block. Read more
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
§

type Preimages = Pallet<Runtime>

The preimage provider with which we look up call hashes to get the call.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

A stable ID for a validator.
§

type ValidatorIdOf = ConvertInto

A conversion from account ID to validator ID. Read more
§

type ShouldEndSession = Pallet<Runtime>

Indicator for when to end the session.
§

type NextSessionRotation = Pallet<Runtime>

Something that can predict the next session rotation. This should typically come from the same logical unit that provides ShouldEndSession, yet, it gives a best effort estimate. It is helpful to implement [EstimateNextNewSession].
§

type SessionManager = NoteHistoricalRoot<Runtime, Pallet<Runtime>>

Handler for managing new session.
§

type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders

Handler when a session has changed.
§

type Keys = SessionKeys

The keys.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type Currency = Pallet<Runtime>

Currency type used in this pallet (used for reserve/slash)
§

type EvaluationPeriod = ConstU32<7>

Evaluation period number of blocks. As the evaluation is done using 3 pools, the evaluation will take 3 * EvaluationPeriod.
§

type EvaluationPrice = ConstU64<1000>

Amount reserved during evaluation
§

type MaxRefereeDistance = ConstU32<5>

Maximum distance used to define referee’s accessibility Unused by runtime but needed by client distance oracle
§

type MinAccessibleReferees = MinAccessibleReferees

Minimum ratio of accessible referees
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
§

type OnValidDistanceStatus = Pallet<Runtime>

Handler for successful distance evaluation
§

type CheckRequestDistanceEvaluation = Pallet<Runtime>

Trait to check that distance evaluation request is allowed
source§

impl Config for Runtime

§

type ChangeOwnerKeyPeriod = ChangeOwnerKeyPeriod

Minimum duration between two owner key changes.
§

type ConfirmPeriod = IdtyConfirmPeriod<Runtime>

Period during which the owner can confirm the new identity.
§

type ValidationPeriod = ValidationPeriod

Period before which the identity has to be validated (become member).
§

type AutorevocationPeriod = AutorevocationPeriod

Period before which an identity who lost membership is automatically revoked.
§

type DeletionPeriod = DeletionPeriod

Period after which a revoked identity is removed and the keys are freed.
§

type CheckIdtyCallAllowed = Pallet<Runtime>

Management of the authorizations of the different calls. The default implementation allows everything.
§

type IdtyCreationPeriod = IdtyCreationPeriod<Runtime>

Minimum duration between the creation of 2 identities by the same creator.
§

type IdtyData = IdtyData

Custom data to store in each identity.
§

type IdtyIndex = u32

A short identity index.
§

type AccountLinker = Pallet<Runtime>

custom type for account data
§

type IdtyNameValidator = IdtyNameValidatorImpl

Handle logic to validate an identity name
§

type Signer = <MultiSignature as Verify>::Signer

Signing key of a payload
§

type Signature = MultiSignature

Signature of a payload
§

type OnNewIdty = OnNewIdtyHandler<Runtime>

On identity created.
§

type OnRemoveIdty = OnRemoveIdtyHandler<Runtime>

On identity removed.
§

type RuntimeEvent = RuntimeEvent

Because this pallet emits events, it depends on the runtime’s definition of an event.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

fn prepare_set_code_data() -> Vec<u8>

Adds ability to the Runtime to test against their sample code. Read more
§

fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>

Adds ability to the Runtime to prepare/initialize before running benchmark set_code.
§

fn verify_set_code()

Adds ability to the Runtime to do custom validation after benchmark. Read more
source§

impl Config for Runtime

§

type EventHandler = Pallet<Runtime>

An event handler for authored blocks.
§

type FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>

Find the author of a block.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type Currency = Pallet<Runtime>

§

type InnerOnChargeTransaction = Pallet<Runtime>

§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type SwapAction = BalanceSwapAction<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Pallet<Runtime>>

Swap action.
§

type ProofLimit = ConstU32<1024>

Limit of proof size. Read more
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type AuthorityId = Public

The identifier type for an authority.
§

type ValidatorSet = Pallet<Runtime>

A type for retrieving the validators supposed to be online in a session.
§

type NextSessionRotation = Pallet<Runtime>

A trait that allows us to estimate the current session progress and also the average session length. Read more
§

type ReportUnresponsiveness = Pallet<Runtime>

A type that gives us the ability to submit unresponsiveness offence reports.
§

type UnsignedPriority = ImOnlineUnsignedPriority

A configuration for base priority of unsigned transactions. Read more
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
§

type MaxKeys = ConstU32<1000>

The maximum number of keys that can be added.
§

type MaxPeerInHeartbeats = MaxPeerInHeartbeats

The maximum number of peers to be stored in ReceivedHeartbeats
source§

impl Config for Runtime

§

type CheckMembershipOpAllowed = Pallet<Runtime>

Ask the runtime whether the identity can perform membership operations
§

type IdtyId = u32

Something that identifies an identity
§

type IdtyIdOf = IdentityIndexOf<Runtime>

Something that gives the IdtyId of an AccountId
§

type AccountIdOf = IdentityAccountIdProvider<Runtime>

Something that gives the AccountId of an IdtyId
§

type MembershipPeriod = MembershipPeriod<Runtime>

Maximum life span of a single membership (in number of blocks)
§

type MembershipRenewalPeriod = MembershipRenewalPeriod<Runtime>

Minimum delay to wait before renewing membership
§

type OnNewMembership = OnNewMembershipHandler<Runtime>

On new and renew membership handler.
§

type OnRemoveMembership = OnRemoveMembershipHandler<Runtime>

On revoked and removed membership handler.
§

type RuntimeEvent = RuntimeEvent

Because this pallet emits events, it depends on the runtime’s definition of an event.
§

type WeightInfo = WeightInfo<Runtime>

§

type BenchmarkSetupHandler = BenchmarkSetupHandler<Runtime>

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type IdtyIndex = u32

A short identity index.
§

type IsWoTMember = IsWoTMemberProvider<Runtime>

To only allow WoT members to be invited
§

type IdtyIdOf = IdentityIndexOf<Runtime>

Something that gives the IdtyId of an AccountId
§

type MinCertForMembership = SmithWotMinCertForMembership<Runtime>

Minimum number of certifications to become a Smith
§

type MaxByIssuer = SmithCertMaxByIssuer<Runtime>

Maximum number of active certifications by issuer
§

type SmithInactivityMaxDuration = SmithInactivityMaxDuration<Runtime>

Maximum duration of inactivity before a smith is removed
§

type OnSmithDelete = OnSmithDeletedHandler<Runtime>

Notify when a smith is removed (for authority-members to react)
§

type IdtyIdOfAuthorityId = ConvertInto

Something that gives the IdtyId of an AccountId
§

type MemberId = u32

Identifier for an authority-member
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
§

type OwnerKeyOf = Pallet<Runtime>

Something that give the owner key of an identity
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)

Full identification of the validator.
§

type OnOffenceHandler = Pallet<Runtime>

A handler called for every offence report.
source§

impl CoreV5<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

fn initialize_block( header: &<Block as BlockT>::Header ) -> ExtrinsicInclusionMode

Initialize a block with the given header and return the runtime executive mode.
source§

impl Debug for Runtime

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

source§

fn ensure_inherents_are_first( block: &<Runtime as Config>::Block ) -> Result<u32, u32>

Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
source§

impl GenesisBuilderV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn create_default_config() -> Vec<u8>

Creates the default RuntimeGenesisConfig and returns it as a JSON blob. Read more
source§

fn build_config(config: Vec<u8>) -> Result

Build RuntimeGenesisConfig from a JSON blob not using any defaults and store it in the storage. Read more
source§

impl GetRuntimeBlockType for Runtime

§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

impl GrandpaApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn grandpa_authorities() -> GrandpaAuthorityList

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more
source§

fn current_set_id() -> SetId

Get current GRANDPA authority set id.
source§

fn submit_report_equivocation_unsigned_extrinsic( _equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>, _key_owner_proof: OpaqueKeyOwnershipProof ) -> Option<()>

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context.
source§

fn generate_key_ownership_proof( _set_id: SetId, _authority_id: GrandpaId ) -> Option<OpaqueKeyOwnershipProof>

Generates a proof of key ownership for the given authority in the given set. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a set_id as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height, i.e. any point at which the given set id is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available.
source§

impl IsInherent<<<Runtime as Config>::Block as Block>::Extrinsic> for Runtime

source§

fn is_inherent(ext: &<<Runtime as Config>::Block as Block>::Extrinsic) -> bool

Whether this extrinsic is an inherent.
source§

impl MetadataV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn metadata() -> OpaqueMetadata

Returns the metadata of a runtime.
source§

fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

Returns the metadata at a given version. Read more
source§

fn metadata_versions() -> Vec<u32>

Returns the supported metadata versions. Read more
source§

impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn offchain_worker(header: &<Block as BlockT>::Header)

Starts the off-chain task for given block header.
source§

impl PartialEq for Runtime

source§

fn eq(&self, other: &Runtime) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<C> SendTransactionTypes<C> for Runtime
where RuntimeCall: From<C>,

§

type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>

The extrinsic type expected by the runtime.
§

type OverarchingCall = RuntimeCall

The runtime’s call type. Read more
source§

impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn decode_session_keys(encoded: Vec<u8>) -> Option<Vec<(Vec<u8>, KeyTypeId)>>

Decode the given public session keys. Read more
source§

fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more
source§

impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn validate_transaction( source: TransactionSource, tx: <Block as BlockT>::Extrinsic, block_hash: <Block as BlockT>::Hash ) -> TransactionValidity

Validate the transaction. Read more
source§

impl TransactionPaymentApiV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u64> for Runtime

source§

fn query_info( uxt: <Block as BlockT>::Extrinsic, len: u32 ) -> RuntimeDispatchInfo<Balance>

source§

fn query_fee_details( uxt: <Block as BlockT>::Extrinsic, len: u32 ) -> FeeDetails<Balance>

source§

fn query_weight_to_fee(weight: Weight) -> Balance

source§

fn query_length_to_fee(length: u32) -> Balance

source§

impl TypeInfo for Runtime

§

type Identity = Runtime

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl ValidateUnsigned for Runtime

§

type Call = RuntimeCall

The call to validate
source§

fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>

Validate the call right before dispatch. Read more
source§

fn validate_unsigned( source: TransactionSource, call: &Self::Call ) -> TransactionValidity

Return the validity of the call Read more
source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Copy for Runtime

source§

impl Eq for Runtime

source§

impl StructuralPartialEq for Runtime

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> FmtForward for T

§

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,

Causes self to use its Display implementation when Debug-formatted.
§

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,

Causes self to use its LowerHex implementation when Debug-formatted.
§

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,

Causes self to use its Pointer implementation when Debug-formatted.
§

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,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where 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) -> R
where 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) -> R
where 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) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where 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) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where 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)) -> Self
where 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)) -> Self
where 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)) -> Self
where 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)) -> Self
where 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)) -> Self
where 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

Calls .tap() only in debug builds, and is erased in release builds.
§

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)) -> Self
where 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)) -> Self
where 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)) -> Self
where 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)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

type Error = <U as TryFromKey<T>>::Error

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,

§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

§

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,