pub trait Hypervisor: 'static {
type ProtoPartition<'a>: ProtoPartition<Partition = Self::Partition>;
type Partition;
type Error: Error + Send + Sync + 'static;
// Required methods
fn is_available(&self) -> Result<bool, Self::Error>;
fn new_partition<'a>(
&'a mut self,
config: ProtoPartitionConfig<'a>,
) -> Result<Self::ProtoPartition<'a>, Self::Error>;
}
Required Associated Types§
Sourcetype ProtoPartition<'a>: ProtoPartition<Partition = Self::Partition>
type ProtoPartition<'a>: ProtoPartition<Partition = Self::Partition>
The prototype partition type.
Required Methods§
Sourcefn is_available(&self) -> Result<bool, Self::Error>
fn is_available(&self) -> Result<bool, Self::Error>
Returns whether this hypervisor is available on this machine.
Sourcefn new_partition<'a>(
&'a mut self,
config: ProtoPartitionConfig<'a>,
) -> Result<Self::ProtoPartition<'a>, Self::Error>
fn new_partition<'a>( &'a mut self, config: ProtoPartitionConfig<'a>, ) -> Result<Self::ProtoPartition<'a>, Self::Error>
Returns a new prototype partition from the given configuration.
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.