pub trait WeightInfo {
Show 35 methods
// Required methods
fn configure() -> Weight;
fn reserve() -> Weight;
fn unreserve() -> Weight;
fn set_lease() -> Weight;
fn remove_lease() -> Weight;
fn start_sales(n: u32) -> Weight;
fn purchase() -> Weight;
fn renew() -> Weight;
fn transfer() -> Weight;
fn partition() -> Weight;
fn interlace() -> Weight;
fn assign() -> Weight;
fn pool() -> Weight;
fn claim_revenue(m: u32) -> Weight;
fn purchase_credit() -> Weight;
fn drop_region() -> Weight;
fn drop_contribution() -> Weight;
fn drop_history() -> Weight;
fn drop_renewal() -> Weight;
fn request_core_count(n: u32) -> Weight;
fn process_core_count(n: u32) -> Weight;
fn process_revenue() -> Weight;
fn rotate_sale(n: u32) -> Weight;
fn process_pool() -> Weight;
fn process_core_schedule() -> Weight;
fn request_revenue_info_at() -> Weight;
fn notify_core_count() -> Weight;
fn notify_revenue() -> Weight;
fn do_tick_base() -> Weight;
fn force_reserve() -> Weight;
fn swap_leases() -> Weight;
fn enable_auto_renew() -> Weight;
fn disable_auto_renew() -> Weight;
fn on_new_timeslice() -> Weight;
fn remove_assignment() -> Weight;
}
Expand description
Weight functions needed for pallet_broker
.
Required Methods§
fn configure() -> Weight
fn reserve() -> Weight
fn unreserve() -> Weight
fn set_lease() -> Weight
fn remove_lease() -> Weight
fn start_sales(n: u32) -> Weight
fn purchase() -> Weight
fn renew() -> Weight
fn transfer() -> Weight
fn partition() -> Weight
fn interlace() -> Weight
fn assign() -> Weight
fn pool() -> Weight
fn claim_revenue(m: u32) -> Weight
fn purchase_credit() -> Weight
fn drop_region() -> Weight
fn drop_contribution() -> Weight
fn drop_history() -> Weight
fn drop_renewal() -> Weight
fn request_core_count(n: u32) -> Weight
fn process_core_count(n: u32) -> Weight
fn process_revenue() -> Weight
fn rotate_sale(n: u32) -> Weight
fn process_pool() -> Weight
fn process_core_schedule() -> Weight
fn request_revenue_info_at() -> Weight
fn notify_core_count() -> Weight
fn notify_revenue() -> Weight
fn do_tick_base() -> Weight
fn force_reserve() -> Weight
fn swap_leases() -> Weight
fn enable_auto_renew() -> Weight
fn disable_auto_renew() -> Weight
fn on_new_timeslice() -> Weight
fn remove_assignment() -> Weight
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl WeightInfo for ()
impl WeightInfo for ()
Source§fn configure() -> Weight
fn configure() -> Weight
Storage: Broker::Configuration
(r:0 w:1)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Source§fn reserve() -> Weight
fn reserve() -> Weight
Storage: Broker::Reservations
(r:1 w:1)
Proof: Broker::Reservations
(max_values
: Some(1), max_size
: Some(6011), added: 6506, mode: MaxEncodedLen
)
Source§fn unreserve() -> Weight
fn unreserve() -> Weight
Storage: Broker::Reservations
(r:1 w:1)
Proof: Broker::Reservations
(max_values
: Some(1), max_size
: Some(6011), added: 6506, mode: MaxEncodedLen
)
Source§fn set_lease() -> Weight
fn set_lease() -> Weight
Storage: Broker::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, mode: MaxEncodedLen
)
Source§fn remove_lease() -> Weight
fn remove_lease() -> Weight
Storage: Broker::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, mode: MaxEncodedLen
)
Source§fn start_sales(n: u32) -> Weight
fn start_sales(n: u32) -> Weight
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, mode: MaxEncodedLen
)
Storage: Broker::Reservations
(r:1 w:0)
Proof: Broker::Reservations
(max_values
: Some(1), max_size
: Some(6011), added: 6506, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolIo
(r:3 w:3)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, mode: MaxEncodedLen
)
Storage: Broker::AutoRenewals
(r:1 w:1)
Proof: Broker::AutoRenewals
(max_values
: Some(1), max_size
: Some(101), added: 596, mode: MaxEncodedLen
)
Storage: Broker::SaleInfo
(r:0 w:1)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:0 w:1)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:0 w:10)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
The range of component n
is [0, 1000]
.
Source§fn purchase() -> Weight
fn purchase() -> Weight
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::SaleInfo
(r:1 w:1)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::Regions
(r:0 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Source§fn renew() -> Weight
fn renew() -> Weight
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::SaleInfo
(r:1 w:1)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::PotentialRenewals
(r:1 w:2)
Proof: Broker::PotentialRenewals
(max_values
: None, max_size
: Some(1233), added: 3708, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:0 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Source§fn transfer() -> Weight
fn transfer() -> Weight
Storage: Broker::Regions
(r:1 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Source§fn partition() -> Weight
fn partition() -> Weight
Storage: Broker::Regions
(r:1 w:2)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Source§fn interlace() -> Weight
fn interlace() -> Weight
Storage: Broker::Regions
(r:1 w:3)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Source§fn assign() -> Weight
fn assign() -> Weight
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Regions
(r:1 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:1 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Source§fn pool() -> Weight
fn pool() -> Weight
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Regions
(r:1 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:1 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolIo
(r:2 w:2)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolContribution
(r:0 w:1)
Proof: Broker::InstaPoolContribution
(max_values
: None, max_size
: Some(68), added: 2543, mode: MaxEncodedLen
)
Source§fn claim_revenue(m: u32) -> Weight
fn claim_revenue(m: u32) -> Weight
Storage: Broker::InstaPoolContribution
(r:1 w:1)
Proof: Broker::InstaPoolContribution
(max_values
: None, max_size
: Some(68), added: 2543, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolHistory
(r:3 w:1)
Proof: Broker::InstaPoolHistory
(max_values
: None, max_size
: Some(45), added: 2520, mode: MaxEncodedLen
)
Storage: System::Account
(r:2 w:2)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
The range of component m
is [1, 3]
.
Source§fn purchase_credit() -> Weight
fn purchase_credit() -> Weight
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn drop_region() -> Weight
fn drop_region() -> Weight
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Regions
(r:1 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(86), added: 2561, mode: MaxEncodedLen
)
Source§fn drop_contribution() -> Weight
fn drop_contribution() -> Weight
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolContribution
(r:1 w:1)
Proof: Broker::InstaPoolContribution
(max_values
: None, max_size
: Some(68), added: 2543, mode: MaxEncodedLen
)
Source§fn drop_history() -> Weight
fn drop_history() -> Weight
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolHistory
(r:1 w:1)
Proof: Broker::InstaPoolHistory
(max_values
: None, max_size
: Some(45), added: 2520, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:0)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn drop_renewal() -> Weight
fn drop_renewal() -> Weight
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::PotentialRenewals
(r:1 w:1)
Proof: Broker::PotentialRenewals
(max_values
: None, max_size
: Some(1233), added: 3708, mode: MaxEncodedLen
)
Source§fn request_core_count(_n: u32) -> Weight
fn request_core_count(_n: u32) -> Weight
The range of component n
is [0, 1000]
.
Source§fn process_core_count(n: u32) -> Weight
fn process_core_count(n: u32) -> Weight
Storage: Broker::CoreCountInbox
(r:1 w:1)
Proof: Broker::CoreCountInbox
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
The range of component n
is [0, 1000]
.
Source§fn process_revenue() -> Weight
fn process_revenue() -> Weight
Storage: Broker::RevenueInbox
(r:1 w:1)
Proof: Broker::RevenueInbox
(max_values
: Some(1), max_size
: Some(20), added: 515, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolHistory
(r:1 w:1)
Proof: Broker::InstaPoolHistory
(max_values
: None, max_size
: Some(45), added: 2520, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn rotate_sale(n: u32) -> Weight
fn rotate_sale(n: u32) -> Weight
Storage: Broker::InstaPoolIo
(r:3 w:3)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, mode: MaxEncodedLen
)
Storage: Broker::Reservations
(r:1 w:0)
Proof: Broker::Reservations
(max_values
: Some(1), max_size
: Some(6011), added: 6506, mode: MaxEncodedLen
)
Storage: Broker::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, mode: MaxEncodedLen
)
Storage: Broker::AutoRenewals
(r:1 w:1)
Proof: Broker::AutoRenewals
(max_values
: Some(1), max_size
: Some(101), added: 596, mode: MaxEncodedLen
)
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::PotentialRenewals
(r:10 w:20)
Proof: Broker::PotentialRenewals
(max_values
: None, max_size
: Some(1233), added: 3708, mode: MaxEncodedLen
)
Storage: System::Account
(r:10 w:10)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Storage: Broker::SaleInfo
(r:0 w:1)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:0 w:1000)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
The range of component n
is [0, 1000]
.
Source§fn process_pool() -> Weight
fn process_pool() -> Weight
Storage: Broker::InstaPoolIo
(r:1 w:0)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, mode: MaxEncodedLen
)
Storage: Broker::InstaPoolHistory
(r:0 w:1)
Proof: Broker::InstaPoolHistory
(max_values
: None, max_size
: Some(45), added: 2520, mode: MaxEncodedLen
)
Source§fn process_core_schedule() -> Weight
fn process_core_schedule() -> Weight
Storage: Broker::Workplan
(r:1 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Storage: Broker::Workload
(r:1 w:1)
Proof: Broker::Workload
(max_values
: None, max_size
: Some(1212), added: 3687, mode: MaxEncodedLen
)
Source§fn notify_core_count() -> Weight
fn notify_core_count() -> Weight
Storage: Broker::CoreCountInbox
(r:0 w:1)
Proof: Broker::CoreCountInbox
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Source§fn notify_revenue() -> Weight
fn notify_revenue() -> Weight
Storage: Broker::RevenueInbox
(r:0 w:1)
Proof: Broker::RevenueInbox
(max_values
: Some(1), max_size
: Some(20), added: 515, mode: MaxEncodedLen
)
Source§fn do_tick_base() -> Weight
fn do_tick_base() -> Weight
Storage: Broker::Status
(r:1 w:1)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::CoreCountInbox
(r:1 w:0)
Proof: Broker::CoreCountInbox
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Broker::RevenueInbox
(r:1 w:0)
Proof: Broker::RevenueInbox
(max_values
: Some(1), max_size
: Some(20), added: 515, mode: MaxEncodedLen
)
Source§fn force_reserve() -> Weight
fn force_reserve() -> Weight
Storage: Broker::SaleInfo
(r:1 w:0)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::Reservations
(r:1 w:1)
Proof: Broker::Reservations
(max_values
: Some(1), max_size
: Some(6011), added: 6506, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:0 w:2)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Source§fn swap_leases() -> Weight
fn swap_leases() -> Weight
Storage: Broker::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, mode: MaxEncodedLen
)
Source§fn enable_auto_renew() -> Weight
fn enable_auto_renew() -> Weight
Storage: Broker::SaleInfo
(r:1 w:1)
Proof: Broker::SaleInfo
(max_values
: Some(1), max_size
: Some(57), added: 552, mode: MaxEncodedLen
)
Storage: Broker::PotentialRenewals
(r:1 w:2)
Proof: Broker::PotentialRenewals
(max_values
: None, max_size
: Some(1233), added: 3708, mode: MaxEncodedLen
)
Storage: Broker::Configuration
(r:1 w:0)
Proof: Broker::Configuration
(max_values
: Some(1), max_size
: Some(31), added: 526, mode: MaxEncodedLen
)
Storage: Broker::Status
(r:1 w:0)
Proof: Broker::Status
(max_values
: Some(1), max_size
: Some(18), added: 513, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Storage: Broker::AutoRenewals
(r:1 w:1)
Proof: Broker::AutoRenewals
(max_values
: Some(1), max_size
: Some(101), added: 596, mode: MaxEncodedLen
)
Storage: Broker::Workplan
(r:0 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)
Source§fn disable_auto_renew() -> Weight
fn disable_auto_renew() -> Weight
Storage: Broker::AutoRenewals
(r:1 w:1)
Proof: Broker::AutoRenewals
(max_values
: Some(1), max_size
: Some(101), added: 596, mode: MaxEncodedLen
)
Source§fn remove_assignment() -> Weight
fn remove_assignment() -> Weight
Storage: Broker::Workplan
(r:1 w:1)
Proof: Broker::Workplan
(max_values
: None, max_size
: Some(1216), added: 3691, mode: MaxEncodedLen
)