pub trait SteppableStorage<S: Storage, Codec, Compact, Input, Index> {
// Required method
fn push_step<T: Serialize + Send>(
&mut self,
step: StepRequest<T, Index>,
) -> impl Future<Output = Result<Parts<S::Context>, StepError>> + Send;
// Provided method
fn start_stepped(
&mut self,
step: Input,
) -> impl Future<Output = Result<Parts<S::Context>, StepError>> + Send
where Input: Serialize + Send,
Index: Default,
Self: Send { ... }
}
Expand description
Helper trait that transforms a storage with stepping capability
Required Methods§
Provided Methods§
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.