Enum frame_system::pallet::Call
source · [−]pub enum Call<T: Config> {
fill_block {
ratio: Perbill,
},
remark {
remark: Vec<u8>,
},
set_heap_pages {
pages: u64,
},
set_code {
code: Vec<u8>,
},
set_code_without_checks {
code: Vec<u8>,
},
set_storage {
items: Vec<KeyValue>,
},
kill_storage {
keys: Vec<Key>,
},
kill_prefix {
prefix: Key,
subkeys: u32,
},
remark_with_event {
remark: Vec<u8>,
},
// some variants omitted
}
Expand description
Contains one variant per dispatchable that can be called by an extrinsic.
Variants
fill_block
Fields
ratio: Perbill
A dispatch that will fill the block weight up to the given ratio.
remark
set_heap_pages
Fields
pages: u64
Set the number of pages in the WebAssembly environment’s heap.
set_code
Set the new runtime code.
O(C + S)
whereC
length ofcode
andS
complexity ofcan_set_code
- 1 call to
can_set_code
:O(S)
(callssp_io::misc::runtime_version
which is expensive). - 1 storage write (codec
O(C)
). - 1 digest item.
- 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_code_without_checks
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 digest item.
- 1 event. The weight of this function is dependent on the runtime. We will treat this as a full block. #
set_storage
Set some items of storage.
kill_storage
Kill some items from storage.
kill_prefix
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.
remark_with_event
Implementations
Create a call with the variant fill_block
.
Create a call with the variant remark
.
Create a call with the variant set_heap_pages
.
Create a call with the variant set_code
.
Create a call with the variant set_code_without_checks
.
Create a call with the variant set_storage
.
Create a call with the variant kill_storage
.
Create a call with the variant kill_prefix
.
Create a call with the variant remark_with_event
.
Trait Implementations
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
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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
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
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
pub fn blake2_128_concat(&self) -> Vec<u8, Global>ⓘ
pub fn twox_64_concat(&self) -> Vec<u8, Global>ⓘ
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more