Trait virt::ResetPartition

source ·
pub trait ResetPartition {
    type Error: Error;

    // Required method
    fn reset(&self) -> Result<(), Self::Error>;
}
Expand description

Extension trait for resetting the partition.

Required Associated Types§

Required Methods§

source

fn reset(&self) -> Result<(), Self::Error>

Resets the partition, restoring all partition state to the initial state.

The caller must ensure that no VPs are running when this is called.

If this fails, the partition is in a bad state and cannot be resumed until a subsequent reset call succeeds.

Implementors§