pub struct NextFeeMultiplier(_);
Trait Implementations
sourceimpl StorageValue<FixedU128> for NextFeeMultiplier
impl StorageValue<FixedU128> for NextFeeMultiplier
type Query = Multiplier
type Query = Multiplier
The type that get/take returns.
sourcefn module_prefix() -> &'static [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn module_prefix() -> &'static [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Module prefix. Used for generating final key.
sourcefn storage_prefix() -> &'static [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn storage_prefix() -> &'static [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Storage prefix. Used for generating final key.
sourcefn from_optional_value_to_query(v: Option<Multiplier>) -> Self::Query
fn from_optional_value_to_query(v: Option<Multiplier>) -> Self::Query
Convert an optional value retrieved from storage to the type queried.
sourcefn from_query_to_optional_value(v: Self::Query) -> Option<Multiplier>
fn from_query_to_optional_value(v: Self::Query) -> Option<Multiplier>
Convert a query to an optional value into storage.
sourcefn storage_value_final_key() -> [u8; 32]
fn storage_value_final_key() -> [u8; 32]
Generate the full key used in top storage.
Auto Trait Implementations
impl RefUnwindSafe for NextFeeMultiplier
impl Send for NextFeeMultiplier
impl Sync for NextFeeMultiplier
impl Unpin for NextFeeMultiplier
impl UnwindSafe for NextFeeMultiplier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedConversion for T
impl<T> CheckedConversion for T
sourcefn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<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
sourcefn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Consume self to return Some
equivalent value of Option<T>
. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<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
sourcefn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
sourceimpl<T, G> StorageValue<T> for G where
T: FullCodec,
G: StorageValue<T>,
impl<T, G> StorageValue<T> for G where
T: FullCodec,
G: StorageValue<T>,
type Query = <G as StorageValue<T>>::Query
type Query = <G as StorageValue<T>>::Query
The type that get/take return.
sourcepub fn hashed_key() -> [u8; 32]
pub fn hashed_key() -> [u8; 32]
Get the storage key.
sourcepub fn get() -> <G as StorageValue<T>>::Query
pub fn get() -> <G as StorageValue<T>>::Query
Load the value from the provided storage instance.
sourcepub fn try_get() -> Result<T, ()>
pub fn try_get() -> Result<T, ()>
Try to get the underlying value from the provided storage instance. Read more
sourcepub fn translate<O, F>(f: F) -> Result<Option<T>, ()> where
O: Decode,
F: FnOnce(Option<O>) -> Option<T>,
pub fn translate<O, F>(f: F) -> Result<Option<T>, ()> where
O: Decode,
F: FnOnce(Option<O>) -> Option<T>,
Translate a value from some previous type (O
) to the current type. Read more
sourcepub fn put<Arg>(val: Arg) where
Arg: EncodeLike<T>,
pub fn put<Arg>(val: Arg) where
Arg: EncodeLike<T>,
Store a value under this key into the provided storage instance.
sourcepub fn set(maybe_val: <G as StorageValue<T>>::Query)
pub fn set(maybe_val: <G as StorageValue<T>>::Query)
Store a value under this key into the provided storage instance; this uses the query type rather than the underlying value. Read more
sourcepub fn mutate<R, F>(f: F) -> R where
F: FnOnce(&mut <G as StorageValue<T>>::Query) -> R,
pub fn mutate<R, F>(f: F) -> R where
F: FnOnce(&mut <G as StorageValue<T>>::Query) -> R,
Mutate the value
sourcepub fn try_mutate<R, E, F>(f: F) -> Result<R, E> where
F: FnOnce(&mut <G as StorageValue<T>>::Query) -> Result<R, E>,
pub fn try_mutate<R, E, F>(f: F) -> Result<R, E> where
F: FnOnce(&mut <G as StorageValue<T>>::Query) -> Result<R, E>,
Mutate the value if closure returns Ok
sourcepub fn take() -> <G as StorageValue<T>>::Query
pub fn take() -> <G as StorageValue<T>>::Query
Take a value from storage, removing it afterwards.
sourcepub fn append<Item, EncodeLikeItem>(item: EncodeLikeItem) where
Item: Encode,
EncodeLikeItem: EncodeLike<Item>,
T: StorageAppend<Item>,
pub fn append<Item, EncodeLikeItem>(item: EncodeLikeItem) where
Item: Encode,
EncodeLikeItem: EncodeLike<Item>,
T: StorageAppend<Item>,
Append the given item to the value in the storage. Read more
sourcefn decode_len() -> Option<usize> where
T: StorageDecodeLength,
fn decode_len() -> Option<usize> where
T: StorageDecodeLength,
Read the length of the storage value without decoding the entire value. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
sourceimpl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
sourcepub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.