pub struct Runtime;

Implementations§

Trait Implementations§

source§

impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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) -> Nonce

Get current account nonce of given AccountId.
source§

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

source§

fn slot_duration() -> SlotDuration

Returns the slot duration for Aura. Read more
source§

fn authorities() -> Vec<AuraId>

Return the current set of authorities.
source§

impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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.
source§

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

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

fn is_root(&self) -> bool

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

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 CollectCollationInfoV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn collect_collation_info(header: &<Block as BlockT>::Header) -> CollationInfo

Collect information about a collation. Read more
source§

impl Config<()> for Runtime

§

type PalletId = TreasuryPalletId

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

type Currency = CurrencyAdapter<Runtime, MgxTokenId>

The staking balance.
§

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

Origin from which approvals must come.
§

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

Origin from which rejections must come.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnSlash = ()

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

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

Period between successive spends.
§

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

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

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type MaxApprovals = MaxApprovals

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

type SpendOrigin = NeverEnsureOrigin<u128>

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

impl Config<Instance1> for Runtime

§

type RuntimeOrigin = RuntimeOrigin

The runtime origin type.
§

type Proposal = RuntimeCall

The runtime call dispatch type.
§

type RuntimeEvent = RuntimeEvent

The runtime event type.
§

type MotionDuration = CouncilMotionDuration

The time-out for council motions.
§

type ProposalCloseDelay = CouncilProposalCloseDelay

The minimum amount of time after proposal creation before it can be closed
§

type MaxProposals = CouncilMaxProposals

Maximum number of proposals allowed to be active in parallel.
§

type MaxMembers = CouncilMaxMembers

The maximum number of members supported by the pallet. Used for weight estimation. Read more
§

type FoundationAccountsProvider = FoundationAccountsProvider<Runtime>

The provider for the list of Foundation accounts
§

type DefaultVote = PrimeDefaultVote

Default vote strategy of this collective.
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
§

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

Origin allowed to set collective members
§

type MaxProposalWeight = MaxProposalWeight

The maximum weight of a dispatch call that can be proposed and executed.
source§

impl Config for Runtime

§

type BaseCallFilter = Everything

The basic call filter to use in dispatchable.

§

type BlockWeights = RuntimeBlockWeights

Block & extrinsics weights: base values and limits.

§

type BlockLength = RuntimeBlockLength

The maximum length of a block (in bytes).

§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

§

type Nonce = u32

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

§

type Hash = H256

The type for hashing blocks and tries.

§

type Hashing = BlakeTwo256

The hashing algorithm used.

§

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

The block type.

§

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

The identifier used to distinguish between accounts.

§

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

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

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type BlockHashCount = BlockHashCount

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

§

type DbWeight = RocksDbWeight

The weight of database operations that the runtime can invoke.

§

type Version = Version

Runtime version.

§

type PalletInfo = PalletInfo

Converts a module to an index of this module in the runtime.

§

type AccountData = ()

The data to be stored in an account.

§

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 SystemWeightInfo = ModuleWeight<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 = ParachainSetCode<Runtime>

The action to take on a Runtime Upgrade

§

type MaxConsumers = ConstU32<16>

The maximum number of consumers allowed on a single account.

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type DisallowedInBatch = DisallowedInBatch<Runtime>

§

type PalletsOrigin = OriginCaller

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

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type Balance = u128

The balance type.
§

type CurrencyId = u32

Currency Id.
§

type CurrencyIdConvert = TokenToMultiLocation<Runtime>

Convert T::CurrencyId to MultiLocation.
§

type AccountIdToMultiLocation = AccountIdToMultiLocation

Convert T::AccountId to MultiLocation.
§

type SelfLocation = SelfLocation<Runtime>

Self chain location.
§

type MinXcmFee = ParachainMinFee

Minimum xcm execution fee paid on destination chain.
§

type XcmExecutor = XcmExecutor<XcmConfig>

XCM executor.
§

type MultiLocationsFilter = Everything

MultiLocation filter
§

type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>

Means of measuring the weight consumed by an XCM message locally.
§

type BaseXcmWeight = BaseXcmWeight

Base XCM weight. Read more
§

type UniversalLocation = UniversalLocation<Runtime>

This chain’s Universal Location.
§

type MaxAssetsForTransfer = MaxAssetsForTransfer

The maximum number of distinct assets allowed to be transferred in a single helper extrinsic.
§

type ReserveProvider = AbsoluteReserveProvider

The way to retreave the reserve of a MultiAsset. This can be configured to accept absolute or relative paths for self tokens
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnChargeTransaction = OnChargeHandler<MultiTokenCurrencyAdapter<Runtime>, ToAuthor<Runtime>, ThreeCurrencyOnChargeAdapter<MultiTokenCurrencyAdapter<Runtime>, ToAuthor<Runtime>, MgxTokenId, RelayTokenId, TurTokenId, ConstU128<{ common_runtime::constants::fee::RELAY_MGX_SCALE_FACTOR }>, ConstU128<{ common_runtime::constants::fee::TUR_MGR_SCALE_FACTOR }>, Foo<Runtime>>, 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 LengthToFee = ConstantMultiplier<u128, TransactionByteFee>

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

type WeightToFee = WeightToFee

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

type FeeMultiplierUpdate = ConstFeeMultiplier<ConstFeeMultiplierValue>

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

type OperationalFeeMultiplier = OperationalFeeMultiplier

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

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

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

type NativeCurrencyId = MgxTokenId

MGA currency to check total_issuance
§

type Tokens = MultiTokenCurrencyAdapter<Runtime>

Tokens
§

type BlocksPerRound = BlocksPerRound

Number of blocks per session/round
§

type HistoryLimit = HistoryLimit

Number of sessions to store issuance history for
§

type LiquidityMiningIssuanceVault = LiquidityMiningIssuanceVault

The account id that holds the liquidity mining issuance
§

type StakingIssuanceVault = StakingIssuanceVault

The account id that holds the staking issuance
§

type TotalCrowdloanAllocation = TotalCrowdloanAllocation

The total mga allocated for crowdloans
§

type IssuanceCap = IssuanceCap

The maximum amount of Mangata tokens
§

type LinearIssuanceBlocks = LinearIssuanceBlocks

The number of blocks the issuance is linear
§

type LiquidityMiningSplit = LiquidityMiningSplit

The split of issuance for liquidity mining rewards
§

type StakingSplit = StakingSplit

The split of issuance for staking rewards
§

type ImmediateTGEReleasePercent = ImmediateTGEReleasePercent

The maximum amount of Mangata tokens
§

type TGEReleasePeriod = TGEReleasePeriod

The number of blocks the tge tokens vest for
§

type TGEReleaseBegin = TGEReleaseBegin

The block at which the tge tokens begin to vest
§

type VestingProvider = Pallet<Runtime>

The vesting pallet
§

type WeightInfo = ModuleWeight<Runtime>

§

type LiquidityMiningApi = Pallet<Runtime>

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type CustomMetadata = CustomMetadata

Additional non-standard metadata to store for each asset
§

type AssetId = u32

The type used as a unique asset id,
§

type AuthorityOrigin = AssetAuthority<Runtime>

Checks that an origin has the authority to register/update an asset
§

type AssetProcessor = SequentialIdWithCreation<Runtime>

A filter ran upon metadata registration that assigns an is and potentially modifies the supplied metadata.
§

type Balance = u128

The balance type.
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this module.
§

type StringLimit = StringLimit

The maximum length of a name or symbol.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type Currency = CurrencyAdapter<Runtime, MgxTokenId>

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

Weight information for extrinsics in this pallet.
§

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

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type MaintenanceStatusProvider = Pallet<Runtime>

§

type XcmExecutor = XcmExecutor<XcmConfig>

§

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

Origin which is allowed to execute overweight messages.
source§

impl Config for Runtime

§

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

Find the author of a block.
§

type EventHandler = Pallet<Runtime>

An event handler for authored blocks.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Currency = CurrencyAdapter<Runtime, MgxTokenId>

The currency trait.
§

type BasicDeposit = BasicDeposit

The amount held on deposit for a registered identity
§

type FieldDeposit = FieldDeposit

The amount held on deposit per additional field for a registered identity.
§

type SubAccountDeposit = SubAccountDeposit

The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes.
§

type MaxSubAccounts = MaxSubAccounts

The maximum number of sub-accounts allowed per identified account.
§

type MaxAdditionalFields = MaxAdditionalFields

Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O required to access an identity, but can be pretty high.
§

type MaxRegistrars = MaxRegistrars

Maxmimum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements.
§

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

The origin which may forcibly set or remove a name. Root can always do this.
§

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

The origin which may add or remove registrars. Root can always do this.
§

type Slashed = Pallet<Runtime, ()>

What to do with slashed funds.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type Moment = u64

A timestamp: milliseconds since the unix epoch.

§

type OnTimestampSet = ()

Something which can be notified when the timestamp is set. Set this to () if not needed.
§

type MinimumPeriod = MinimumPeriod

The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings.
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type AuthorityId = Public

The identifier type for an authority.
§

type DisabledValidators = ()

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

The maximum number of authorities that the pallet can hold.
§

type AllowMultipleBlocksPerSlot = ConstBool<false>

Whether to allow block authors to create multiple blocks per slot. Read more
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type WeightInfo = ()

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type Balance = u128

The balance type use Into<128> to supportd current impl of mangata-node pallets which rely on U256::from(value: u128) for arithemtics
§

type Amount = i128

The amount type, should be signed version of Balance
§

type CurrencyId = u32

The currency ID type
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this module.
§

type ExistentialDeposits = ExistentialDeposits

The minimum amount required to keep an account. It’s deprecated to config 0 as ED for any currency_id, zero ED will retain account even if its total is zero. Since accounts of orml_tokens are also used as providers of System::AccountInfo, zero ED may cause some problems.
§

type MaxLocks = MaxLocks

§

type DustRemovalWhitelist = DustRemovalWhitelist<TreasuryAccountIdOf<Runtime>>

§

type CurrencyHooks = ()

Hooks are actions that are executed on certain events. For example: OnDust, OnNewTokenAccount
§

type MaxReserves = ()

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

type ReserveIdentifier = [u8; 8]

The id type for named reserves.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type SudoOrigin = EnsureProportionMoreThan<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 2>

The Origin allowed to use sudo
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type
§

type Initialized = Initialized

Checker for the reward vec, is it initalized already?
§

type InitializationPayment = InitializationPayment

Percentage to be payed at initialization
§

type MaxInitContributors = MaxInitContributorsBatchSizes

§

type MinimumReward = MinimumReward

The minimum contribution to which rewards will be paid.
§

type RewardAddressRelayVoteThreshold = RelaySignaturesThreshold

A fraction representing the percentage of proofs that need to be presented to change a reward address through the relay keys
§

type NativeTokenId = MgxTokenId

MGA token Id
§

type Tokens = MultiTokenCurrencyAdapter<Runtime>

The currency in which the rewards will be paid (probably the parachain native currency)
§

type RelayChainAccountId = AccountId32

The AccountId type contributors used on the relay chain.
§

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

§

type SignatureNetworkIdentifier = SigantureNetworkIdentifier

Network Identifier to be appended into the signatures for reward address change/association Prevents replay attacks from one network to the other
§

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

§

type VestingBlockNumber = u32

The type that will be used to track vesting progress
§

type VestingBlockProvider = Pallet<Runtime>

The notion of time that will be used for vesting. Probably either the relay chain or sovereignchain block number.
§

type VestingProvider = Pallet<Runtime>

Vesting provider for paying out vested rewards
§

type WeightInfo = ModuleWeight<Runtime>

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

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

The required origin for sending XCM as parachain sovereign. Read more
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type MaintenanceStatusProvider = Pallet<Runtime>

§

type OnSystemEvent = ()

Something which can be notified when the validation data is set.
§

type SelfParaId = Pallet<Runtime>

Returns the parachain ID we are running with.
§

type DmpMessageHandler = Pallet<Runtime>

The message handler that will be invoked when messages are received via DMP.
§

type ReservedDmpWeight = ReservedDmpWeight

The weight we reserve at the beginning of the block for processing DMP messages.
§

type OutboundXcmpMessageSource = Pallet<Runtime>

The place where outbound XCMP messages come from. This is queried in finalize_block.
§

type XcmpMessageHandler = Pallet<Runtime>

The message handler that will be invoked when messages are received via XCMP. Read more
§

type ReservedXcmpWeight = ReservedXcmpWeight

The weight we reserve at the beginning of the block for processing XCMP messages.
§

type CheckAssociatedRelayNumber = AnyRelayNumber

Something that can check the associated relay parent block number.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type MaintenanceStatusProvider = Pallet<Runtime>

§

type XcmExecutor = XcmExecutor<XcmConfig>

Something to execute an XCM message. We need this to service the XCMoXCMP queue.
§

type ChannelInfo = Pallet<Runtime>

Information on the avaialble XCMP channels.
§

type VersionWrapper = ()

Means of converting an Xcm into a VersionedXcm.
§

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

The origin that is allowed to execute overweight messages.
§

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

The origin that is allowed to resume or suspend the XCMP queue.
§

type ControllerOriginConverter = (SovereignSignedViaLocation<(ParentIsPreset<<Runtime as Config>::AccountId>, SiblingParachainConvertsVia<Sibling, <Runtime as Config>::AccountId>, AccountId32Aliases<RelayNetwork, <Runtime as Config>::AccountId>, Account32Hash<RelayNetwork, <Runtime as Config>::AccountId>), RuntimeOrigin>, RelayChainAsNative<RelayChainOrigin<Runtime>, RuntimeOrigin>, SiblingParachainAsNative<Origin, RuntimeOrigin>, SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>, XcmPassthrough<RuntimeOrigin>)

The conversion function used to attempt to convert an XCM MultiLocation origin to a superuser origin.
§

type WeightInfo = ()

The weight information of this pallet.
§

type PriceForSiblingDelivery = ()

The price for delivering an XCM to a sibling parachain destination.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type XcmExecutor = XcmExecutor<XcmConfig>

source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>

Required origin for sending XCM messages. If successful, it resolves to MultiLocation which exists as an interior location within this chain’s XCM context.
§

type XcmRouter = (ParentAsUmp<Pallet<Runtime>, Pallet<Runtime>, ()>, Pallet<Runtime>)

The type used to actually dispatch an XCM to its destination.
§

type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, SignedToAccountId32<RuntimeOrigin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RelayNetwork>>

Required origin for executing XCM messages, including the teleport functionality. If successful, then it resolves to MultiLocation which exists as an interior location within this chain’s XCM context.
§

type XcmExecuteFilter = Nothing

Our XCM filter which messages to be executed using XcmExecutor must pass.
§

type XcmExecutor = XcmExecutor<XcmConfig>

Something to execute an XCM message.
§

type XcmTeleportFilter = Nothing

Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.
§

type XcmReserveTransferFilter = Everything

Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.
§

type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>

Means of measuring the weight consumed by an XCM message locally.
§

type UniversalLocation = UniversalLocation<Runtime>

This chain’s Universal Location.
§

type RuntimeOrigin = RuntimeOrigin

The runtime Origin type.
§

type RuntimeCall = RuntimeCall

The runtime Call type.
source§

const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100u32

§

type AdvertisedXcmVersion = CurrentXcmVersion

The latest supported version that we advertise. Generally just set it to pallet_xcm::CurrentXcmVersion.
§

type Currency = CurrencyAdapter<Runtime, MgxTokenId>

A lockable currency.
§

type CurrencyMatcher = ()

The MultiAsset matcher for Currency.
§

type TrustedLockers = ()

The assets which we consider a given origin is trusted if they claim to have placed a lock.
§

type SovereignAccountOf = (ParentIsPreset<<Runtime as Config>::AccountId>, SiblingParachainConvertsVia<Sibling, <Runtime as Config>::AccountId>, AccountId32Aliases<RelayNetwork, <Runtime as Config>::AccountId>, Account32Hash<RelayNetwork, <Runtime as Config>::AccountId>)

How to get an AccountId value from a MultiLocation, useful for handling asset locks.
§

type MaxLockers = ConstU32<8>

The maximum number of local XCM locks that a single account may have.
§

type WeightInfo = TestWeightInfo

Weight information for extrinsics in this pallet.
§

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

The origin that is allowed to call privileged operations on the XCM pallet
§

type MaxRemoteLockConsumers = ConstU32<0>

The maximum number of consumers a single remote lock may have.
§

type RemoteLockConsumerIdentifier = ()

The ID type for local consumers of remote locks.
source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

Overarching event type
§

type StakingReservesProvider = Pallet<Runtime>

Multipurpose-liquidity
§

type Currency = MultiTokenCurrencyAdapter<Runtime>

The currency type
§

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

The origin for monetary governance
§

type BlocksPerRound = BlocksPerRound

Default number of blocks per round at genesis
§

type LeaveCandidatesDelay = LeaveCandidatesDelay

Number of rounds that candidates remain bonded before exit request is executable
§

type CandidateBondDelay = CandidateBondDelay

Number of rounds that candidate requests to adjust self-bond must wait to be executable
§

type LeaveDelegatorsDelay = LeaveDelegatorsDelay

Number of rounds that delegators remain bonded before exit request is executable
§

type RevokeDelegationDelay = RevokeDelegationDelay

Number of rounds that delegations remain bonded before revocation request is executable
§

type DelegationBondDelay = DelegationBondDelay

Number of rounds that delegation {more, less} requests must wait before executable
§

type RewardPaymentDelay = RewardPaymentDelay

Number of rounds after which block authors are rewarded
§

type MinSelectedCandidates = MinSelectedCandidates

Minimum number of selected candidates every round
§

type MaxCollatorCandidates = MaxCollatorCandidates

Maximum collator candidates allowed
§

type MaxTotalDelegatorsPerCandidate = MaxTotalDelegatorsPerCandidate

Maximum delegators allowed per candidate
§

type MaxDelegatorsPerCandidate = MaxDelegatorsPerCandidate

Maximum delegators counted per candidate
§

type MaxDelegationsPerDelegator = MaxDelegationsPerDelegator

Maximum delegations per delegator
§

type DefaultCollatorCommission = DefaultCollatorCommission

Default commission due to collators, is CollatorCommission storage value in genesis
§

type MinCollatorStk = MinCollatorStk

Minimum stake required for any candidate to be in SelectedCandidates for the round
§

type MinCandidateStk = MinCandidateStk

Minimum stake required for any account to be a collator candidate
§

type MinDelegation = MinDelegatorStk

Minimum stake for any registered on-chain account to delegate
§

type NativeTokenId = MgxTokenId

The native token used for payouts
§

type StakingLiquidityTokenValuator = Pallet<Runtime>

The valuator for our staking liquidity tokens, i.e., XYK This should never return (_, Zero::zero())
§

type Issuance = Pallet<Runtime>

The module used for computing and getting issuance
§

type StakingIssuanceVault = <Runtime as Config>::StakingIssuanceVault

The account id that holds the liquidity mining issuance
§

type FallbackProvider = Pallet<Runtime, Instance1>

The module that provides the set of fallback accounts
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type DefaultPayoutLimit = DefaultPayoutLimit

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Tokens = MultiTokenCurrencyAdapter<Runtime>

The tokens trait.
§

type BlockNumberToBalance = ConvertInto

Convert the block number into a balance.
§

type MinVestedTransfer = MinVestedTransfer

The minimum amount transferred to call vested_transfer.
§

type WeightInfo = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

const MAX_VESTING_SCHEDULES: u32 = 50u32

Maximum number of vesting schedules an account may have at a given moment.
§

type UnvestedFundsAllowedWithdrawReasons = UnvestedFundsAllowedWithdrawReasons

Reasons that determine under which conditions the balance may drop below the unvested amount.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type ValidatorId = <Runtime as Config>::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 = 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 = ModuleWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl CoreV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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)

Initialize a block with the given header.
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>

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

impl GetRuntimeBlockType for Runtime

§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

impl MetadataV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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 MetamaskSignatureRuntimeApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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<Runtime> 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 ProofOfStakeApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128, u32, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId> for Runtime

source§

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

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§

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

Decode the given public session keys. Read more
source§

impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (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, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime

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 VerApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime

source§

fn get_signer(tx: <Block as BlockT>::Extrinsic) -> Option<(AccountId32, u32)>

Provides information about extrinsic signer and nonce
source§

fn is_storage_migration_scheduled() -> bool

Checks if storage migration is scheuled
source§

fn store_seed(seed: H256)

stores shuffling seed for current block & shuffles previous block extrinsics if any enqueued
source§

fn get_previous_block_txs() -> Vec<Vec<u8>>

source§

fn pop_txs(count: u64) -> Vec<Vec<u8>>

source§

fn create_enqueue_txs_inherent( txs: Vec<<Block as BlockT>::Extrinsic> ) -> <Block as BlockT>::Extrinsic

source§

fn can_enqueue_txs() -> bool

source§

fn start_prevalidation()

source§

fn account_extrinsic_dispatch_weight( consumed: ConsumedWeight, tx: <Block as BlockT>::Extrinsic ) -> Result<ConsumedWeight, ()>

source§

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

source§

fn enqueued_txs_count(acc: AccountId) -> u64

fetch number of enqueued txs from given account
source§

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

source§

fn calculate_sell_price( input_reserve: Balance, output_reserve: Balance, sell_amount: Balance ) -> Balance

source§

fn calculate_buy_price( input_reserve: Balance, output_reserve: Balance, buy_amount: Balance ) -> Balance

source§

fn calculate_sell_price_id( sold_token_id: TokenId, bought_token_id: TokenId, sell_amount: Balance ) -> Balance

source§

fn calculate_buy_price_id( sold_token_id: TokenId, bought_token_id: TokenId, buy_amount: Balance ) -> Balance

source§

fn get_burn_amount( first_asset_id: TokenId, second_asset_id: TokenId, liquidity_asset_amount: Balance ) -> (Balance, Balance)

source§

fn get_max_instant_burn_amount( user: AccountId, liquidity_asset_id: TokenId ) -> Balance

source§

fn get_max_instant_unreserve_amount( user: AccountId, liquidity_asset_id: TokenId ) -> Balance

source§

fn calculate_rewards_amount( user: AccountId, liquidity_asset_id: TokenId ) -> Balance

source§

fn calculate_balanced_sell_amount( total_amount: Balance, reserve_amount: Balance ) -> Balance

source§

fn get_liq_tokens_for_trading() -> Vec<TokenId>

source§

fn is_sell_asset_lock_free( path: Vec<TokenId>, input_amount: Balance ) -> Option<bool>

source§

fn is_buy_asset_lock_free( path: Vec<TokenId>, input_amount: Balance ) -> Option<bool>

source§

fn get_tradeable_tokens() -> Vec<RpcAssetMetadata<TokenId>>

source§

impl BootstrapBenchmarkingConfig for Runtime

source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Copy for Runtime

source§

impl Eq for Runtime

source§

impl StakingBenchmarkConfig for Runtime

source§

impl StructuralEq for Runtime

source§

impl StructuralPartialEq for Runtime

source§

impl XykBenchmarkingConfig for Runtime

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Any for Twhere T: Any,

source§

fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>

source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>

source§

fn type_name(&self) -> &'static str

source§

impl<T> AnySync for Twhere T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send + 'static>

source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedConversion for T

source§

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

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> Conv for T

source§

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

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

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Qwhere 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.
source§

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

source§

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

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

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

source§

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

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

impl<Q, K> Equivalent<K> for Qwhere 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.
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,

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

fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,

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

fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,

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

fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,

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

fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,

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

fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,

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

fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,

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

fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,

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

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.

source§

impl<T> Instrument for T

source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T> Instrument for T

source§

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

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

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 Twhere 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, U> Into2<U> for Twhere U: From2<T>,

source§

fn into2(self) -> U

source§

impl<T> IsType<T> for T

source§

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

Cast reference.
source§

fn into_ref(&self) -> &T

Cast reference.
source§

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

Cast mutable reference.
source§

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

Cast mutable reference.
source§

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

source§

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

Get a reference to the inner from the outer.

source§

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

Get a mutable reference to the inner from the outer.

source§

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

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

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

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

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

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

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

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

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

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

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

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

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

impl<T> Pointable for T

source§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

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

Initializes a with the given initializer. Read more
source§

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

Dereferences the given pointer. Read more
source§

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

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatedConversion for T

source§

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

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

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

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

impl<T> Tap for T

source§

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

Immutable access to a value. Read more
source§

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

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

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

Immutable access to the Deref::Target of a value. Read more
source§

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

Mutable access to the Deref::Target of a value. Read more
source§

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

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

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

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

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

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

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

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

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

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

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

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

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

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

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere 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 Twhere 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> TryConv for T

source§

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

impl<T, U> TryInto2<U> for Twhere U: TryFrom2<T>,

§

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

source§

fn try_into2(self) -> Result<U, <U as TryFrom2<T>>::Error>

source§

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

source§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
source§

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

source§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
source§

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

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> JsonSchemaMaybe for T

source§

impl<T> MaybeDebug for Twhere T: Debug,

source§

impl<T> MaybeRefUnwindSafe for Twhere T: RefUnwindSafe,

source§

impl<T> MaybeSend for Twhere T: Send,

source§

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

source§

impl<T> PoSBenchmarkingConfig for T

source§

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