Struct test_pallet::Module [−][src]
pub struct Module<T: Config>(_);
Implementations
impl<T: Config> Module<T>
[src]
impl<T: Config> Module<T>
[src]Can also be called using Call
.
pub fn do_something(origin: T::Origin, something: u32) -> DispatchResult
[src]
An example dispatchable that takes a singles value as a parameter, writes the value to storage and emits an event. This function must be dispatched by a signed extrinsic.
NOTE: Calling this function will bypass origin filters.
pub fn cause_error(origin: T::Origin) -> DispatchResult
[src]
An example dispatchable that may throw a custom error.
NOTE: Calling this function will bypass origin filters.
Trait Implementations
impl<T: Config> GetPalletVersion for Module<T>
[src]
impl<T: Config> GetPalletVersion for Module<T>
[src]fn current_version() -> PalletVersion
[src]
fn storage_version() -> Option<PalletVersion>
[src]
impl<T: Config> IntegrityTest for Module<T>
[src]
impl<T: Config> IntegrityTest for Module<T>
[src]pub fn integrity_test()
[src]
impl<T: Config> ModuleErrorMetadata for Module<T>
[src]
impl<T: Config> ModuleErrorMetadata for Module<T>
[src]fn metadata() -> &'static [ErrorMetadata]
[src]
impl<T: Config + Config> OffchainWorker<<T as Config>::BlockNumber> for Module<T>
[src]
impl<T: Config + Config> OffchainWorker<<T as Config>::BlockNumber> for Module<T>
[src]pub fn offchain_worker(_n: BlockNumber)
[src]
impl<T: Config + Config> OnFinalize<<T as Config>::BlockNumber> for Module<T>
[src]
impl<T: Config + Config> OnFinalize<<T as Config>::BlockNumber> for Module<T>
[src]pub fn on_finalize(_n: BlockNumber)
[src]
impl<T: Config + Config> OnInitialize<<T as Config>::BlockNumber> for Module<T>
[src]
impl<T: Config + Config> OnInitialize<<T as Config>::BlockNumber> for Module<T>
[src]pub fn on_initialize(_n: BlockNumber) -> u64
[src]
impl<T: Config> OnRuntimeUpgrade for Module<T>
[src]
impl<T: Config> OnRuntimeUpgrade for Module<T>
[src]fn on_runtime_upgrade() -> Weight
[src]
impl<T: Config> StructuralEq for Module<T>
[src]
impl<T: Config> StructuralEq for Module<T>
[src]impl<T: Config> StructuralPartialEq for Module<T>
[src]
impl<T: Config> StructuralPartialEq for Module<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for Module<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Module<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Module<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Module<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Self: TryInto<T>,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
impl<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>,
pub fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,