pub trait Freezable {
// Provided methods
fn freeze<E: Encoder>(&self, encoder: &mut E) -> Result<(), EncodeError> { ... }
fn thaw<D: Decoder>(&mut self, decoder: &mut D) -> Result<(), DecodeError> { ... }
}
Expand description
The internal state of a task needs to be serializable so the framework can take a snapshot of the task graph.
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.