pub trait PartitionAccessState {
type StateAccess<'a>: AccessVmState
where Self: 'a;
// Required method
fn access_state(&self, vtl: Vtl) -> Self::StateAccess<'_>;
}
Expand description
Provides access to partition state for save, restore, and reset.
This is not part of Partition
because some scenarios do not require such
access.
Required Associated Types§
type StateAccess<'a>: AccessVmState where Self: 'a
Required Methods§
Sourcefn access_state(&self, vtl: Vtl) -> Self::StateAccess<'_>
fn access_state(&self, vtl: Vtl) -> Self::StateAccess<'_>
Returns an object to access VM state for the specified VTL.
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.