Struct gekko::runtime::polkadot::extrinsics::scheduler::Schedule [−][src]
pub struct Schedule<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode, {
pub when: A,
pub maybe_periodic: B,
pub priority: C,
pub call: D,
}
Expand description
Anonymously schedule a task.
Documentation (provided by the runtime metadata)
Anonymously schedule a task.
- S = Number of already scheduled calls
- Base Weight: 22.29 + .126 * S µs
- DB Weight:
- Read: Agenda
- Write: Agenda
- Will use base weight of 25 which should be good for up to 30 scheduled calls
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
when: A
Type description: T::BlockNumber
maybe_periodic: B
Type description: Option<schedule::Period<T::BlockNumber>>
priority: C
Type description: schedule::Priority
call: D
Type description: Box<<T as Config>::Call>
Trait Implementations
impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for Schedule<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
Auto Trait Implementations
impl<A, B, C, D> RefUnwindSafe for Schedule<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, B, C, D> UnwindSafe for Schedule<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
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
The counterpart to unchecked_from
.