#[doc(hidden)]pub trait SnapshotSerde {
type Value;
// Required method
fn __mx_snapshot(&self) -> Option<Snapshot<Self::Value>>;
}Expand description
Snapshot probe, serde arm: T: Serialize + DeserializeOwned. This impl,
on the probe taking &self, matches the receiver &SnapshotProbe<T> by
value; SnapshotNone needs one more auto-ref and is reached only when
T is not serde.
The trait exists without the serde feature so the generated use
resolves; it then has no impl, and every type takes SnapshotNone.
Required Associated Types§
Required Methods§
Sourcefn __mx_snapshot(&self) -> Option<Snapshot<Self::Value>>
fn __mx_snapshot(&self) -> Option<Snapshot<Self::Value>>
How a value goes into a save and comes back.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".