pub trait OperatorState: Send + Sync {
// Required methods
fn snapshot(&self) -> impl Future<Output = Result<Vec<u8>>> + Send;
fn restore(
&self,
snapshot: &[u8],
) -> impl Future<Output = Result<()>> + Send;
}Expand description
Operator state trait.
Required 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.