Struct pallet_ovm::CurrentSchedule [−][src]
pub struct CurrentSchedule(_);
Expand description
Current cost schedule for contracts.
Trait Implementations
Module prefix. Used for generating final key.
Storage prefix. Used for generating final key.
Convert an optional value retrieved from storage to the type queried.
Convert a query to an optional value into storage.
Generate the full key used in top storage.
Auto Trait Implementations
impl RefUnwindSafe for CurrentSchedule
impl Send for CurrentSchedule
impl Sync for CurrentSchedule
impl Unpin for CurrentSchedule
impl UnwindSafe for CurrentSchedule
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
type Query = <G as StorageValue<T>>::Query
type Query = <G as StorageValue<T>>::Query
The type that get/take return.
Get the storage key.
Load the value from the provided storage instance.
Try to get the underlying value from the provided storage instance. Read more
Translate a value from some previous type (O
) to the current type. Read more
Store a value under this key into the provided storage instance.
Store a value under this key into the provided storage instance; this uses the query type rather than the underlying value. Read more
Mutate the value
pub 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
Take a value from storage, removing it afterwards.
pub fn append<Item, EncodeLikeItem>(item: EncodeLikeItem) where
T: StorageAppend<Item>,
Item: Encode,
EncodeLikeItem: EncodeLike<Item>,
pub fn append<Item, EncodeLikeItem>(item: EncodeLikeItem) where
T: StorageAppend<Item>,
Item: Encode,
EncodeLikeItem: EncodeLike<Item>,
Append the given item to the value in the storage. Read more
Read the length of the storage value without decoding the entire value. Read more
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,