Type Alias SchedulerEvent

Source
pub type SchedulerEvent = SchedulerEvent;

Aliased Type§

enum SchedulerEvent {
    Scheduled {
        when: u32,
        index: u32,
    },
    Canceled {
        when: u32,
        index: u32,
    },
    Dispatched {
        task: (u32, u32),
        id: Option<[u8; 32]>,
        result: Result<(), DispatchError>,
    },
    CallUnavailable {
        task: (u32, u32),
        id: Option<[u8; 32]>,
    },
    PeriodicFailed {
        task: (u32, u32),
        id: Option<[u8; 32]>,
    },
    PermanentlyOverweight {
        task: (u32, u32),
        id: Option<[u8; 32]>,
    },
}

Variants§

§

Scheduled

Scheduled some task.

Fields

§when: u32
§index: u32
§

Canceled

Canceled some task.

Fields

§when: u32
§index: u32
§

Dispatched

Dispatched some task.

Fields

§task: (u32, u32)
§id: Option<[u8; 32]>
§

CallUnavailable

The call for the provided hash was not found so the task has been aborted.

Fields

§task: (u32, u32)
§id: Option<[u8; 32]>
§

PeriodicFailed

The given task was unable to be renewed since the agenda is full at that block.

Fields

§task: (u32, u32)
§id: Option<[u8; 32]>
§

PermanentlyOverweight

The given task can never be executed since it is overweight.

Fields

§task: (u32, u32)
§id: Option<[u8; 32]>