pub enum QemuDisplay {
Spice {
gl: Option<OnOff>,
},
Sdl {
gl: Option<OnCoreEsOff>,
grab_mod: Option<String>,
show_cursor: Option<OnOff>,
window_close: Option<OnOff>,
},
Gtk {
fullscreen: Option<OnOff>,
gl: Option<OnOff>,
grab_on_hover: Option<OnOff>,
show_tabs: Option<OnOff>,
show_cursor: Option<OnOff>,
window_close: Option<OnOff>,
show_menubar: Option<OnOff>,
zoom_to_fit: Option<OnOff>,
},
Vnc {
vnc: String,
optargs: Option<String>,
},
Curses {
charset: Option<String>,
},
Cocoa {
full_grab: Option<OnOff>,
swap_opt_cmd: Option<OnOff>,
show_cursor: Option<OnOff>,
left_command_key: Option<OnOff>,
full_screen: Option<OnOff>,
zoom_to_fit: Option<OnOff>,
},
EglHeadless {
rendernode: Option<PathBuf>,
},
Dbus {
addr: Option<String>,
p2p: Option<YesNo>,
gl: Option<OnCoreEsOff>,
rendernode: Option<PathBuf>,
},
None,
}Variants§
Trait Implementations§
Source§impl Arbitrary for QemuDisplay
impl Arbitrary for QemuDisplay
Source§type Parameters = (<Option<OnOff> as Arbitrary>::Parameters, (<Option<OnCoreEsOff> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), (<Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters), <Option<String> as Arbitrary>::Parameters, (<Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), <Option<PathBuf> as Arbitrary>::Parameters, (<Option<String> as Arbitrary>::Parameters, <Option<YesNo> as Arbitrary>::Parameters, <Option<OnCoreEsOff> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters))
type Parameters = (<Option<OnOff> as Arbitrary>::Parameters, (<Option<OnCoreEsOff> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), (<Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters), <Option<String> as Arbitrary>::Parameters, (<Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters), <Option<PathBuf> as Arbitrary>::Parameters, (<Option<String> as Arbitrary>::Parameters, <Option<YesNo> as Arbitrary>::Parameters, <Option<OnCoreEsOff> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters))
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<Map<<Option<OnOff> as Arbitrary>::Strategy, fn(Option<OnOff>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnCoreEsOff> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnCoreEsOff>, Option<String>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy), fn((String, Option<String>)) -> QemuDisplay>>), (u32, Arc<Map<<Option<String> as Arbitrary>::Strategy, fn(Option<String>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<<Option<PathBuf> as Arbitrary>::Strategy, fn(Option<PathBuf>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<String> as Arbitrary>::Strategy, <Option<YesNo> as Arbitrary>::Strategy, <Option<OnCoreEsOff> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy), fn((Option<String>, Option<YesNo>, Option<OnCoreEsOff>, Option<PathBuf>)) -> QemuDisplay>>), (u32, Arc<fn() -> QemuDisplay>))>
type Strategy = TupleUnion<((u32, Arc<Map<<Option<OnOff> as Arbitrary>::Strategy, fn(Option<OnOff>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnCoreEsOff> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnCoreEsOff>, Option<String>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy), fn((String, Option<String>)) -> QemuDisplay>>), (u32, Arc<Map<<Option<String> as Arbitrary>::Strategy, fn(Option<String>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>, Option<OnOff>)) -> QemuDisplay>>), (u32, Arc<Map<<Option<PathBuf> as Arbitrary>::Strategy, fn(Option<PathBuf>) -> QemuDisplay>>), (u32, Arc<Map<(<Option<String> as Arbitrary>::Strategy, <Option<YesNo> as Arbitrary>::Strategy, <Option<OnCoreEsOff> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy), fn((Option<String>, Option<YesNo>, Option<OnCoreEsOff>, Option<PathBuf>)) -> QemuDisplay>>), (u32, Arc<fn() -> QemuDisplay>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for QemuDisplay
impl Clone for QemuDisplay
Source§fn clone(&self) -> QemuDisplay
fn clone(&self) -> QemuDisplay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QemuDisplay
impl Debug for QemuDisplay
Source§impl FromStr for QemuDisplay
impl FromStr for QemuDisplay
Source§impl Hash for QemuDisplay
impl Hash for QemuDisplay
Source§impl Ord for QemuDisplay
impl Ord for QemuDisplay
Source§fn cmp(&self, other: &QemuDisplay) -> Ordering
fn cmp(&self, other: &QemuDisplay) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QemuDisplay
impl PartialEq for QemuDisplay
Source§impl PartialOrd for QemuDisplay
impl PartialOrd for QemuDisplay
Source§impl ToCommand for QemuDisplay
impl ToCommand for QemuDisplay
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for QemuDisplay
impl StructuralPartialEq for QemuDisplay
Auto Trait Implementations§
impl Freeze for QemuDisplay
impl RefUnwindSafe for QemuDisplay
impl Send for QemuDisplay
impl Sync for QemuDisplay
impl Unpin for QemuDisplay
impl UnsafeUnpin for QemuDisplay
impl UnwindSafe for QemuDisplay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more