pub trait Cleanup: Retry + Failure {
type Context: Context;
type Producer: Producer<Context = Self::Context>;
// Required methods
fn entries(
current: <Self::Producer as Close>::State,
context: Self::Context,
) -> Self;
fn payload(current: <Self::Context as Close>::State) -> Self;
fn producer(current: <Self::Producer as Close>::State) -> Self;
}Expand description
Exact native storage states retained until all mappings are released.
Required Associated Types§
Required Methods§
fn entries( current: <Self::Producer as Close>::State, context: Self::Context, ) -> Self
fn payload(current: <Self::Context as Close>::State) -> Self
fn producer(current: <Self::Producer as Close>::State) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".