pub trait GainSTMContext: Send + Sync {
type Context: GainContext;
// Required method
fn next(&mut self) -> Option<Self::Context>;
}Expand description
A trait to build a GainContext for GainSTM.
Required Associated Types§
Sourcetype Context: GainContext
type Context: GainContext
The GainContext type.
Required Methods§
Sourcefn next(&mut self) -> Option<Self::Context>
fn next(&mut self) -> Option<Self::Context>
Returns the next GainContext.