Trait gear_common::scheduler::SchedulingCostsPerBlock

source ·
pub trait SchedulingCostsPerBlock {
    type BlockNumber;
    type Cost;

    // Required methods
    fn reserve_for() -> Self::BlockNumber;
    fn code() -> Self::Cost;
    fn mailbox() -> Self::Cost;
    fn program() -> Self::Cost;
    fn waitlist() -> Self::Cost;
    fn reservation() -> Self::Cost;
    fn dispatch_stash() -> Self::Cost;
    fn by_storage_type(storage: StorageType) -> Self::Cost;
}
Expand description

Storing costs getter trait.

Required Associated Types§

source

type BlockNumber

Block number type.

source

type Cost

Cost type.

Required Methods§

source

fn reserve_for() -> Self::BlockNumber

Extra reserve for being able to pay for blocks with incomplete tasks.

source

fn code() -> Self::Cost

Cost for storing code per block.

source

fn mailbox() -> Self::Cost

Cost for storing message in mailbox per block.

source

fn program() -> Self::Cost

Cost for storing program per block.

source

fn waitlist() -> Self::Cost

Cost for storing message in waitlist per block.

source

fn reservation() -> Self::Cost

Cost for reservation holding.

source

fn dispatch_stash() -> Self::Cost

Cost for storing message in dispatch stash. Everything sent delayed goes into dispatch stash.

source

fn by_storage_type(storage: StorageType) -> Self::Cost

Derives the cost per block based on the lock identifier

Object Safety§

This trait is not object safe.

Implementors§