vmcore::save_restore

Trait SavedStateRoot

Source
pub trait SavedStateRoot: DescribedProtobuf { }
Expand description

Trait implemented by “root” saved state blobs, which are ones that either form the root of a saved state tree, or at points in the tree where the type is not known at compile time.

Do not implement this trait manually. Derive it with #[derive(SavedStateRoot)]. This emits extra code to ensure that the saved state type metadata is included in the binary.

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.

Implementors§