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§
sourcetype BlockNumber
type BlockNumber
Block number type.
Required Methods§
sourcefn reserve_for() -> Self::BlockNumber
fn reserve_for() -> Self::BlockNumber
Extra reserve for being able to pay for blocks with incomplete tasks.
sourcefn reservation() -> Self::Cost
fn reservation() -> Self::Cost
Cost for reservation holding.
sourcefn dispatch_stash() -> Self::Cost
fn dispatch_stash() -> Self::Cost
Cost for storing message in dispatch stash. Everything sent delayed goes into dispatch stash.
sourcefn by_storage_type(storage: StorageType) -> Self::Cost
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.