referrerpolicy=no-referrer-when-downgrade

TimesliceProvider

Trait TimesliceProvider 

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

Provides timeslice-related information to the market implementation.

Required Methods§

Source

fn next_timeslice_to_commit() -> Option<Timeslice>

Returns the next timeslice pending commitment, if any.

Source

fn latest_timeslice_ready_to_commit() -> Option<Timeslice>

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§