Struct gekko::runtime::polkadot::extrinsics::scheduler::ScheduleNamed [−][src]
pub struct ScheduleNamed<A, B, C, D, E> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
E: Encode + Decode, {
pub id: A,
pub when: B,
pub maybe_periodic: C,
pub priority: D,
pub call: E,
}
Expand description
Schedule a named task.
Documentation (provided by the runtime metadata)
Schedule a named task.
- S = Number of already scheduled calls
- Base Weight: 29.6 + .159 * S µs
- DB Weight:
- Read: Agenda, Lookup
- Write: Agenda, Lookup
- Will use base weight of 35 which should be good for more than 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
id: A
Type description: Vec<u8>
when: B
Type description: T::BlockNumber
maybe_periodic: C
Type description: Option<schedule::Period<T::BlockNumber>>
priority: D
Type description: schedule::Priority
call: E
Type description: Box<<T as Config>::Call>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A: Eq, B: Eq, C: Eq, D: Eq, E: Eq> Eq for ScheduleNamed<A, B, C, D, E> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
E: Encode + Decode,
Auto Trait Implementations
impl<A, B, C, D, E> RefUnwindSafe for ScheduleNamed<A, B, C, D, E> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<A, B, C, D, E> Send for ScheduleNamed<A, B, C, D, E> where
A: Send,
B: Send,
C: Send,
D: Send,
E: Send,
impl<A, B, C, D, E> Sync for ScheduleNamed<A, B, C, D, E> where
A: Sync,
B: Sync,
C: Sync,
D: Sync,
E: Sync,
impl<A, B, C, D, E> Unpin for ScheduleNamed<A, B, C, D, E> where
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
E: Unpin,
impl<A, B, C, D, E> UnwindSafe for ScheduleNamed<A, B, C, D, E> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: 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
.