20 lines
491 B
Rust
Executable File
20 lines
491 B
Rust
Executable File
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, clap::ValueEnum, Default)]
|
|
pub enum Connector {
|
|
#[default]
|
|
Qemu,
|
|
Kvm,
|
|
Pcileech,
|
|
Native
|
|
}
|
|
|
|
impl ToString for Connector {
|
|
fn to_string(&self) -> String {
|
|
match self {
|
|
Connector::Qemu => String::from("qemu"),
|
|
Connector::Kvm => String::from("kvm"),
|
|
Connector::Pcileech => String::from("pcileech"),
|
|
Connector::Native => String::from("native"),
|
|
}
|
|
}
|
|
}
|