Enum frame_system::pallet::Call [−][src]
pub enum Call<T: Config> { fill_block(Perbill), remark(Vec<u8>), set_heap_pages(u64), set_code(Vec<u8>), set_code_without_checks(Vec<u8>), set_changes_trie_config(Option<ChangesTrieConfiguration>), set_storage(Vec<KeyValue>), kill_storage(Vec<Key>), kill_prefix(Key, u32), remark_with_event(Vec<u8>), // some variants omitted }
Expand description
Contains one variant per dispatchable that can be called by an extrinsic.
Variants
fill_block(Perbill)
A dispatch that will fill the block weight up to the given ratio.
set_heap_pages(u64)
Set the number of pages in the WebAssembly environment’s heap.
O(1)
- 1 storage write.
- Base Weight: 1.405 µs
- 1 write to HEAP_PAGES
Set the new runtime code.
O(C + S)
whereC
length ofcode
andS
complexity ofcan_set_code
- 1 storage write (codec
O(C)
). - 1 call to
can_set_code
:O(S)
(callssp_io::misc::runtime_version
which is expensive). - 1 event. The weight of this function is dependent on the runtime, but generally this is very expensive. We will treat this as a full block.
Set the new runtime code without doing any checks of the given code
.
O(C)
whereC
length ofcode
- 1 storage write (codec
O(C)
). - 1 event. The weight of this function is dependent on the runtime. We will treat this as a full block. #
set_changes_trie_config(Option<ChangesTrieConfiguration>)
Set the new changes trie configuration.
O(1)
- 1 storage write or delete (codec
O(1)
). - 1 call to
deposit_log
: Usesappend
API, so O(1) - Base Weight: 7.218 µs
- DB Weight:
- Writes: Changes Trie, System Digest
Set some items of storage.
O(I)
whereI
length ofitems
I
storage writes (O(1)
).- Base Weight: 0.568 * i µs
- Writes: Number of items
Kill some items from storage.
O(IK)
whereI
length ofkeys
andK
length of one keyI
storage deletions.- Base Weight: .378 * i µs
- Writes: Number of items
Kill all storage items with a key that starts with the given prefix.
NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function.
O(P)
whereP
amount of keys with prefixprefix
P
storage deletions.- Base Weight: 0.834 * P µs
- Writes: Number of subkeys + 1
Trait Implementations
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Return the function name of the Call.
Return all function names.
Return a DispatchInfo
, containing relevant information of this dispatch. Read more
Dispatch this call but do not check the filter in origin.
Auto Trait Implementations
impl<T> RefUnwindSafe for Call<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Call<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. 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
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,