Struct g1_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

§

type Currency = Pallet<Runtime>

§

type GetCurrentEpochIndex = GetCurrentEpochIndex<Runtime>

Type providing the current epoch index.
§

type MaxRequests = ConstU32<100>

Maximum number of not yet filled requests.
§

type OnFilledRandomness = ()

Handler called when randomness is filled.
§

type OnUnbalanced = HandleFees

Handler for 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 RequestPrice = ConstU64<2000>

The price of a request.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

type AccountLinker = Pallet<Runtime>

A type for linking account data to identity.
§

type AutorevocationPeriod = AutorevocationPeriod

The period before which an identity that lost membership is automatically revoked.
§

type ChangeOwnerKeyPeriod = ChangeOwnerKeyPeriod

The minimum duration between two owner key changes to prevent identity theft.
§

type CheckAccountWorthiness = Pallet<Runtime>

The type used to check account worthiness.
§

type CheckIdtyCallAllowed = Pallet<Runtime>

Management of the authorizations of the different calls related to identity.
§

type ConfirmPeriod = ConfirmPeriod

The period during which the owner can confirm the new identity.
§

type DeletionPeriod = DeletionPeriod

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

type IdtyCreationPeriod = IdtyCreationPeriod

The minimum duration between the creation of two identities by the same creator. Should be greater than or equal to the certification period defined in the certification pallet.
§

type IdtyData = IdtyData

Custom data to store in each identity.
§

type IdtyIndex = u32

A short identity index type.
§

type IdtyNameValidator = IdtyNameValidatorImpl

Handle logic to validate an identity name.
§

type OnNewIdty = OnNewIdtyHandler<Runtime>

Handler called when a new identity is created.
§

type OnRemoveIdty = OnRemoveIdtyHandler<Runtime>

Handler called when an identity is removed.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Signature = MultiSignature

Signature type for payload verification.
§

type Signer = <MultiSignature as Verify>::Signer

Signing key type used for payload signatures.
§

type ValidationPeriod = ValidationPeriod

The period during which the identity has to be validated to become a member.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type Currency = Pallet<Runtime>

The currency type.
§

type InnerOnChargeTransaction = Pallet<Runtime>

A handler for charging transactions.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

type CertPeriod = CertPeriod

The minimum duration (in blocks) between two certifications issued by the same issuer.
§

type CheckCertAllowed = Pallet<Runtime>

A type that provides a method to check if issuing a certification is allowed.
§

type IdtyAttr = Pallet<Runtime>

A type that provides methods to get the IdtyIndex of an AccountId and vice versa.
§

type IdtyIndex = u32

A short identity index type.
§

type MaxByIssuer = MaxByIssuer

The maximum number of active certifications that can be issued by a single issuer.
§

type MinReceivedCertToBeAbleToIssueCert = MinReceivedCertToBeAbleToIssueCert

The minimum number of certifications received that an identity must have to be allowed to issue a certification.
§

type OnNewcert = Pallet<Runtime>

A handler that is called when a new certification event (NewCert) occurs.
§

type OnRemovedCert = Pallet<Runtime>

A handler that is called when a certification is removed (RemovedCert).
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type ValidityPeriod = ValidityPeriod

The duration (in blocks) for which a certification remains valid.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type PalletsOrigin = OriginCaller

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

type RuntimeCall = RuntimeCall

The overarching call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type Consideration = ()

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

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 RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

The Weight information for this pallet.
source§

impl Config for Runtime

§

type FirstIssuableOn = WotFirstCertIssuableOn

The block number from which the first certification can be issued.
§

type MinCertForCreateIdtyRight = WotMinCertForCreateIdtyRight

The minimum number of certifications required to create an identity.
§

type MinCertForMembership = WotMinCertForMembership

The minimum number of certifications required for membership eligibility.
source§

impl Config for Runtime

§

type CheckRequestDistanceEvaluation = Pallet<Runtime>

A trait that provides a method to check if a distance evaluation request is allowed.
§

type Currency = Pallet<Runtime>

Currency type used in this pallet for reserve and slash operations.
§

type EvaluationPeriod = ConstU32<7>

The evaluation period in blocks. Since the evaluation uses 3 pools, the total evaluation time will be 3 * EvaluationPeriod.
§

type EvaluationPrice = ConstU64<1000>

The amount reserved during evaluation.
§

type MaxRefereeDistance = ConstU32<5>

The maximum distance used to define a referee’s accessibility. This value is not used by the runtime but is needed by the client distance oracle.
§

type MinAccessibleReferees = MinAccessibleReferees

The minimum ratio of accessible referees required.
§

type OnValidDistanceStatus = Pallet<Runtime>

A handler that is called when a distance evaluation is successfully validated.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeHoldReason = RuntimeHoldReason

The overarching hold reason type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type Currency = Pallet<Runtime>

The currency type used in this pallet.
§

type IdtyAttr = Pallet<Runtime>

Something that gives the IdtyIndex of an AccountId and reverse, used for benchmarks.
§

type MaxPastReeval = ConstU32<160>

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

type MembersCount = MembersCount

Provides the number of accounts allowed to create the universal dividend.
§

type MembersStorage = UdMembersStorage<Runtime>

Storage for mapping AccountId to their first eligible UD creation time.
§

type MomentIntoBalance = ConvertInto

Something that convert a Moment inot a Balance.
§

type RuntimeEvent = RuntimeEvent

The overarching event type for this pallet.
§

type SquareMoneyGrowthRate = SquareMoneyGrowthRate

Square of the money growth rate per UD reevaluation period.
§

type UdCreationPeriod = UdCreationPeriod

Universal dividend creation period in milliseconds.
§

type UdReevalPeriod = UdReevalPeriod

Universal dividend reevaluation period in milliseconds.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

type FeeMultiplierUpdate = FeeMultiplier<Runtime, Target, MaxMultiplier>

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

type LengthToFee = LengthToFeeImpl<u64, Runtime, Target>

Convert a length value into a deductible fee based on the currency 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 RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightToFee = WeightToFeeImpl<u64, Runtime, Target>

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

impl Config for Runtime

§

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.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

impl Config for Runtime

§

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 CallHasher = BlakeTwo256

The type of hash used for hashing the call.
§

type Currency = Pallet<Runtime>

The currency mechanism.
§

type MaxPending = ConstU32<32>

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

type MaxProxies = ConstU32<32>

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

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 ProxyType = ProxyType

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

type RuntimeCall = RuntimeCall

The overarching call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

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 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 EpochDuration = EpochDuration

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 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 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 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 MaxAuthorities = MaxAuthorities

Max number of authorities allowed
§

type MaxNominators = MaxNominators

The maximum number of nominators for each validator.
§

type WeightInfo = WeightInfo<Runtime>

Helper for weights computations
source§

impl Config for Runtime

§

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

Origin from which approvals must come.
§

type AssetKind = ()

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

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 BenchmarkHelper = ()

Helper type for benchmarks.
§

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 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 MaxApprovals = ConstU32<100>

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

type OnSlash = Pallet<Runtime>

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

type PalletId = TreasuryPalletId

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

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

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

type PayoutPeriod = ConstU32<10>

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

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 ProposalBondMaximum = ProposalBondMaximum

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

type ProposalBondMinimum = ConstU64<10000>

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

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

Origin from which rejections must come.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type SpendFunds = TreasurySpendFunds<Runtime>

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

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 SpendPeriod = SpendPeriod

Period between successive spends.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type AccountData = AccountData<u64, u32>

The data to be stored in an account.

§

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

The identifier used to distinguish between accounts.

§

type BaseCallFilter = BaseCallFilter

The basic call filter to use in dispatchable.

§

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 BlockHashCount = BlockHashCount

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

§

type BlockLength = BlockLength

The maximum length of a block (in bytes).

§

type BlockWeights = BlockWeights

Block & extrinsics weights: base values and limits.

§

type DbWeight = ParityDbWeight

The weight of database operations that the runtime can invoke.

§

type Hash = H256

The type for hashing blocks and tries.

§

type Hashing = BlakeTwo256

The hashing algorithm used.

§

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

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

§

type Nonce = u32

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

§

type OnKilledAccount = ()

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

§

type OnNewAccount = ()

What to do if a new account is created.

§

type OnSetCode = ()

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

§

type PalletInfo = PalletInfo

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

This type is being generated by construct_runtime!.

§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

§

type SS58Prefix = SS58Prefix

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

§

type SystemWeightInfo = WeightInfo<Runtime>

Weight information for the extrinsics of this pallet.

§

type Version = Version

Version of the runtime.

§

type MaxConsumers = ConstU32<16>

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

type MultiBlockMigrator = ()

The migrator that is used to run Multi-Block-Migrations. 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
§

type PreInherents = ()

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

type RuntimeTask = ()

The aggregated RuntimeTask type.
§

type SingleBlockMigrations = ()

All migrations that should run in the next runtime upgrade. 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 AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
§

type Balance = u64

The balance of an account.
§

type DustRemoval = HandleFees

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 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 MaxLocks = MaxLocks

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

type MaxReserves = ConstU32<5>

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

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeFreezeReason = ()

The overarching freeze reason.
§

type RuntimeHoldReason = RuntimeHoldReason

The overarching hold reason.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
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 IsMember = Pallet<Runtime>

Specifies the type that determines membership status.
§

type MaxAuthorities = MaxAuthorities

Maximum number of authorities allowed.
§

type MemberId = u32

Type representing the identifier of a member.
§

type MemberIdOf = IdentityIndexOf<Runtime>

Converts an AccountId to an optional MemberId.
§

type OnIncomingMember = Pallet<Runtime>

Handler for when a new member is added to authorities.
§

type OnNewSession = OnNewSessionHandler<Runtime>

Handler for when a new session is initiated.
§

type OnOutgoingMember = Pallet<Runtime>

Handler for when a member is removed from authorities.
§

type RemoveMemberOrigin = EnsureRoot<<Runtime as Config>::AccountId>

Specifies the origin type required to remove a member.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type AuthorityId = Public

The identifier type for an authority.
§

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
§

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 RuntimeEvent = RuntimeEvent

The overarching event type.
§

type UnsignedPriority = ImOnlineUnsignedPriority

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

type ValidatorSet = Pallet<Runtime>

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

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
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 BenchmarkSetupHandler = BenchmarkSetupHandler<Runtime>

Benchmark setup handler for runtime benchmarks (feature-dependent).
§

type CheckMembershipOpAllowed = Pallet<Runtime>

Check if the identity can perform membership operations.
§

type IdtyAttr = Pallet<Runtime>

Something that gives the IdtyId of an AccountId and reverse.
§

type IdtyId = u32

Something that identifies an identity.
§

type MembershipPeriod = MembershipPeriod

Maximum lifespan of a single membership (in number of blocks).
§

type MembershipRenewalPeriod = MembershipRenewalPeriod

Minimum delay to wait before renewing membership, i.e., asking for distance evaluation.
§

type OnNewMembership = OnNewMembershipHandler<Runtime>

Handler called when a new membership is created or renewed.
§

type OnRemoveMembership = OnRemoveMembershipHandler<Runtime>

Handler called when a membership is revoked or removed.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

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 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 MaxAuthorities = MaxAuthorities

Max Authorities in use
§

type MaxNominators = ConstU32<64>

The maximum number of nominators for each validator.
§

type MaxSetIdSessionEntries = MaxSetIdSessionEntries

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

type RuntimeEvent = RuntimeEvent

The event type of this module.
§

type WeightInfo = WeightInfo<Runtime>

Weights for this pallet.
source§

impl Config for Runtime

§

type MaxScheduledPerBlock = MaxScheduledPerBlock

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

type MaximumWeight = MaximumSchedulerWeight

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

type OriginPrivilegeCmp = EqualPrivilegeOnly

Compare the privileges of origins. Read more
§

type PalletsOrigin = OriginCaller

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

type Preimages = Pallet<Runtime>

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

type RuntimeCall = RuntimeCall

The aggregated call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeOrigin = RuntimeOrigin

The aggregated origin which the dispatch will take.
§

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

Required origin to schedule or cancel calls.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

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 RuntimeCall = RuntimeCall

The overarching call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type Keys = SessionKeys

The keys.
§

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 RuntimeEvent = RuntimeEvent

The overarching event type.
§

type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders

Handler when a session has changed.
§

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

Handler for managing new session.
§

type ShouldEndSession = Pallet<Runtime>

Indicator for when to end the session.
§

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 WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in 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 IdtyAttr = Pallet<Runtime>

Something that gives the IdtyIndex of an AccountId and reverse.
§

type IdtyIdOfAuthorityId = ConvertInto

Something that gives the AccountId of an identity.
§

type IdtyIndex = u32

A short identity index type.
§

type IsWoTMember = IsWoTMemberProvider<Runtime>

Trait to check if identity is a WoT members.
§

type MaxByIssuer = SmithMaxByIssuer

Maximum number of active certifications per issuer.
§

type MemberId = u32

Identifier type for an authority-member.
§

type MinCertForMembership = SmithWotMinCertForMembership

Minimum number of certifications required to become a Smith.
§

type OnSmithDelete = OnSmithDeletedHandler<Runtime>

§

type RuntimeEvent = RuntimeEvent

The overarching event type for this pallet.
§

type SmithInactivityMaxDuration = SmithInactivityMaxDuration

Maximum duration of inactivity allowed before a Smith is removed.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

type MaxQuota = MaxQuota

Maximum amount of quota an identity can receive.
§

type RefundAccount = TreasuryAccountId

Account used to refund fees.
§

type ReloadRate = ReloadRate

Number of blocks after which the maximum quota is replenished.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
source§

impl Config for Runtime

§

type Call = RuntimeCall

The overarching call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

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

The origin type required for performing upgradable operations.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
§

type WorstCaseOrigin = WorstCaseOrigin

Retrieves the worst case origin for use in weight benchmarks.
§

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

Type representing the worst case origin type used in weight benchmarks.
source§

impl Config for Runtime

§

type MinimumPeriod = MinimumPeriod

The minimum period between blocks. Read more
§

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 WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type ProofLimit = ConstU32<1024>

Limit of proof size. Read more
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

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

Swap action.
source§

impl Config for Runtime

§

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

A wrapped type that handles the charging of transaction fees.
§

type Refund = Pallet<Runtime>

A type that implements the refund behavior for transaction fees.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = WeightInfo<Runtime>

Type representing the weight of this pallet.
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 build_state(config: Vec<u8>) -> Result

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

fn get_preset(id: &Option<PresetId>) -> Option<Vec<u8>>

Returns a JSON blob representation of the built-in RuntimeGenesisConfig identified by id. Read more
source§

fn preset_names() -> Vec<PresetId>

Returns a list of identifiers for available builtin RuntimeGenesisConfig presets. 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
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
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.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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> 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.
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
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,