pub trait WeightInfo {
// Required methods
fn set_config_with_u32() -> Weight;
fn enqueue_n_bytes_xcmp_message(n: u32) -> Weight;
fn enqueue_n_empty_xcmp_messages(n: u32) -> Weight;
fn enqueue_n_full_pages(n: u32) -> Weight;
fn enqueue_1000_small_xcmp_messages() -> Weight;
fn suspend_channel() -> Weight;
fn resume_channel() -> Weight;
fn take_first_concatenated_xcm() -> Weight;
fn on_idle_good_msg() -> Weight;
fn on_idle_large_msg() -> Weight;
}
Expand description
Weight functions needed for cumulus_pallet_xcmp_queue
.
Required Methods§
fn set_config_with_u32() -> Weight
fn enqueue_n_bytes_xcmp_message(n: u32) -> Weight
fn enqueue_n_empty_xcmp_messages(n: u32) -> Weight
fn enqueue_n_full_pages(n: u32) -> Weight
fn enqueue_1000_small_xcmp_messages() -> Weight
fn suspend_channel() -> Weight
fn resume_channel() -> Weight
fn take_first_concatenated_xcm() -> Weight
fn on_idle_good_msg() -> Weight
fn on_idle_large_msg() -> 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 set_config_with_u32() -> Weight
fn set_config_with_u32() -> Weight
Storage: XcmpQueue::QueueConfig
(r:1 w:1)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Source§fn enqueue_n_bytes_xcmp_message(n: u32) -> Weight
fn enqueue_n_bytes_xcmp_message(n: u32) -> Weight
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:1)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)
The range of component n
is [0, 105467]
.
Source§fn enqueue_n_empty_xcmp_messages(n: u32) -> Weight
fn enqueue_n_empty_xcmp_messages(n: u32) -> Weight
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:1)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)
The range of component n
is [0, 1000]
.
Source§fn enqueue_n_full_pages(n: u32) -> Weight
fn enqueue_n_full_pages(n: u32) -> Weight
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:100)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)
The range of component n
is [0, 100]
.
Source§fn enqueue_1000_small_xcmp_messages() -> Weight
fn enqueue_1000_small_xcmp_messages() -> Weight
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:1)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)
Source§fn suspend_channel() -> Weight
fn suspend_channel() -> Weight
Storage: XcmpQueue::OutboundXcmpStatus
(r:1 w:1)
Proof: XcmpQueue::OutboundXcmpStatus
(max_values
: Some(1), max_size
: Some(1282), added: 1777, mode: MaxEncodedLen
)
Source§fn resume_channel() -> Weight
fn resume_channel() -> Weight
Storage: XcmpQueue::OutboundXcmpStatus
(r:1 w:1)
Proof: XcmpQueue::OutboundXcmpStatus
(max_values
: Some(1), max_size
: Some(1282), added: 1777, mode: MaxEncodedLen
)
Source§fn on_idle_good_msg() -> Weight
fn on_idle_good_msg() -> Weight
Storage: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20
(r:1 w:1)
Proof: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20
(r:1 w:1)
Storage: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649
(r:1 w:1)
Proof: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649
(r:1 w:1)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:1)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)
Source§fn on_idle_large_msg() -> Weight
fn on_idle_large_msg() -> Weight
Storage: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20
(r:1 w:1)
Proof: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20
(r:1 w:1)
Storage: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649
(r:1 w:1)
Proof: UNKNOWN KEY 0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649
(r:1 w:1)
Storage: MessageQueue::BookStateFor
(r:1 w:1)
Proof: MessageQueue::BookStateFor
(max_values
: None, max_size
: Some(52), added: 2527, mode: MaxEncodedLen
)
Storage: MessageQueue::ServiceHead
(r:1 w:1)
Proof: MessageQueue::ServiceHead
(max_values
: Some(1), max_size
: Some(5), added: 500, mode: MaxEncodedLen
)
Storage: XcmpQueue::QueueConfig
(r:1 w:0)
Proof: XcmpQueue::QueueConfig
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: XcmpQueue::InboundXcmpSuspended
(r:1 w:0)
Proof: XcmpQueue::InboundXcmpSuspended
(max_values
: Some(1), max_size
: Some(4002), added: 4497, mode: MaxEncodedLen
)
Storage: MessageQueue::Pages
(r:0 w:1)
Proof: MessageQueue::Pages
(max_values
: None, max_size
: Some(105521), added: 107996, mode: MaxEncodedLen
)