referrerpolicy=no-referrer-when-downgrade

TimesliceProvider

Trait TimesliceProvider 

pub trait TimesliceProvider {
    // Required methods
    fn next_timeslice_to_commit() -> Option<u32>;
    fn latest_timeslice_ready_to_commit() -> Option<u32>;
}
Expand description

Provides timeslice-related information to the market implementation.

Required Methods§

fn next_timeslice_to_commit() -> Option<u32>

Returns the next timeslice pending commitment, if any.

fn latest_timeslice_ready_to_commit() -> Option<u32>

Returns the latest timeslice ready to be committed to the relay chain.

Returns None if the timeslice is unknown (e.g., when TimesliceProvider implementer is not yet initialized).

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.

Implementors§