pub trait Get<T> {
    // Required method
    fn get() -> T;
}
Expand description

A trait for querying a single value from a type.

It is not required that the value is constant.

Required Methods§

fn get() -> T

Return the current value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Get<FixedU128> for NextFeeMultiplierOnEmpty

§

fn get() -> FixedU128

source§

impl Get<Perquintill> for DefaultLenientThreshold

source§

fn get() -> Perquintill

§

impl<C, A> Get<<C as Currency<A>>::Balance> for ActiveIssuanceOf<C, A>
where C: Currency<A>,

§

fn get() -> <C as Currency<A>>::Balance

§

impl<C, A> Get<<C as Currency<A>>::Balance> for TotalIssuanceOf<C, A>
where C: Currency<A>,

§

fn get() -> <C as Currency<A>>::Balance

§

impl<I> Get<I> for ParityDbWeight
where I: From<RuntimeDbWeight>,

§

fn get() -> I

§

impl<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageDoubleMap<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>>
where Prefix: StorageInstance, Hasher1: StorageHasher, Hasher2: StorageHasher, Key1: MaxEncodedLen, Key2: MaxEncodedLen,

§

fn get() -> u32

§

impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>>
where Prefix: StorageInstance, Hasher: StorageHasher, Key: FullCodec + MaxEncodedLen,

§

fn get() -> u32

source§

impl<T> Get<<T as Config>::Moment> for MinimumPeriodTimesTwo<T>
where T: Config,

source§

fn get() -> <T as Config>::Moment

source§

impl<T> Get<ElectionOpenness> for DefaultOpenness<T>
where T: Config,

source§

impl<T> Get<CommitteeSeats> for DefaultNextEraCommitteeSize<T>
where T: Config,

§

impl<T> Get<H256> for IntermediateStateRoot<T>
where T: Config,

§

fn get() -> H256

§

impl<T> Get<Permill> for DefaultElasticity<T>
where T: Config,

§

fn get() -> Permill

§

impl<T> Get<T> for ()
where T: Default,

§

fn get() -> T

§

impl<T> Get<U256> for DefaultBaseFeePerGas<T>
where T: Config,

§

fn get() -> U256

§

impl<T, P> Get<u32> for ClassCountOf<P, T>
where P: Polling<T>,

§

fn get() -> u32

Implementors§

§

impl<I> Get<I> for BlockExecutionWeight
where I: From<Weight>,

§

impl<I> Get<I> for ExtrinsicBaseWeight
where I: From<Weight>,

§

impl<I> Get<I> for RocksDbWeight
where I: From<RuntimeDbWeight>,

§

impl<T> Get<T> for GetDefault
where T: Default,

source§

impl<_I: From<&'static PiecewiseLinear<'static>>> Get<_I> for RewardCurve

source§

impl<_I: From<u8>> Get<_I> for SS58Prefix

source§

impl<_I: From<u32>> Get<_I> for MaxWinners

source§

impl<_I: From<u32>> Get<_I> for MaximumBanReasonLength

source§

impl<_I: From<u32>> Get<_I> for Offset

source§

impl<_I: From<u32>> Get<_I> for SessionPeriod

source§

impl<_I: From<u64>> Get<_I> for BlockPovSizeLimit

source§

impl<_I: From<u64>> Get<_I> for GasLimitPovSizeRatio

source§

impl<_I: From<FrontierPrecompiles<Runtime>>> Get<_I> for PrecompilesValue

source§

impl<_I: From<Weight>> Get<_I> for WeightPerGas

source§

impl<_I: From<Balance>> Get<_I> for BasicDeposit

source§

impl<_I: From<Balance>> Get<_I> for FieldDeposit

source§

impl<_I: From<Balance>> Get<_I> for MaxBalance

source§

impl<_I: From<Balance>> Get<_I> for ProposalBondMinimum

source§

impl<_I: From<Balance>> Get<_I> for SubAccountDeposit

source§

impl<_I: From<Balance>> Get<_I> for TransactionByteFee

source§

impl<_I: From<BlockNumber>> Get<_I> for BlockHashCount

source§

impl<_I: From<BlockNumber>> Get<_I> for OffchainRepeat

source§

impl<_I: From<BlockNumber>> Get<_I> for SpendPeriod

source§

impl<_I: From<BlockLength>> Get<_I> for BlockLength

source§

impl<_I: From<BlockWeights>> Get<_I> for BlockWeights

source§

impl<_I: From<EraIndex>> Get<_I> for BondingDuration

source§

impl<_I: From<EraIndex>> Get<_I> for SessionsPerEra

source§

impl<_I: From<EraIndex>> Get<_I> for SlashDeferDuration

source§

impl<_I: From<Multiplier>> Get<_I> for AdjustmentVariable

source§

impl<_I: From<Multiplier>> Get<_I> for MaximumMultiplier

source§

impl<_I: From<Multiplier>> Get<_I> for MinimumMultiplier

source§

impl<_I: From<PalletId>> Get<_I> for TreasuryPalletId

source§

impl<_I: From<Perbill>> Get<_I> for OffendngValidatorsThreshold

source§

impl<_I: From<Permill>> Get<_I> for Burn

source§

impl<_I: From<Permill>> Get<_I> for phronesis_runtime::DefaultElasticity

source§

impl<_I: From<Permill>> Get<_I> for ProposalBond

source§

impl<_I: From<Perquintill>> Get<_I> for TargetBlockFullness

source§

impl<_I: From<PostLogContent>> Get<_I> for PostBlockAndTxnHashes

source§

impl<_I: From<RuntimeVersion>> Get<_I> for Version

source§

impl<_I: From<U256>> Get<_I> for BlockGasLimit

source§

impl<_I: From<U256>> Get<_I> for phronesis_runtime::DefaultBaseFeePerGas

source§

impl<_I: From<U256>> Get<_I> for GasPriceBoundDivisor

§

impl<const T: bool> Get<Option<bool>> for ConstBool<T>

§

impl<const T: bool> Get<bool> for ConstBool<T>

§

impl<const T: i8> Get<Option<i8>> for ConstI8<T>

§

impl<const T: i8> Get<i8> for ConstI8<T>

§

impl<const T: i16> Get<Option<i16>> for ConstI16<T>

§

impl<const T: i16> Get<i16> for ConstI16<T>

§

impl<const T: i32> Get<Option<i32>> for ConstI32<T>

§

impl<const T: i32> Get<i32> for ConstI32<T>

§

impl<const T: i64> Get<Option<i64>> for ConstI64<T>

§

impl<const T: i64> Get<i64> for ConstI64<T>

§

impl<const T: i128> Get<Option<i128>> for ConstI128<T>

§

impl<const T: i128> Get<i128> for ConstI128<T>

§

impl<const T: u8> Get<Option<u8>> for ConstU8<T>

§

impl<const T: u8> Get<u8> for ConstU8<T>

§

impl<const T: u16> Get<Option<u16>> for ConstU16<T>

§

impl<const T: u16> Get<u16> for ConstU16<T>

§

impl<const T: u32> Get<Option<u32>> for ConstU32<T>

§

impl<const T: u32> Get<u32> for ConstU32<T>

§

impl<const T: u64> Get<Option<u64>> for ConstU64<T>

§

impl<const T: u64> Get<u64> for ConstU64<T>

§

impl<const T: u128> Get<Option<u128>> for ConstU128<T>

§

impl<const T: u128> Get<u128> for ConstU128<T>