pub struct Name { /* private fields */ }Expand description
Sets the name of the guest. This name will be displayed in the SDL window caption. The name will also be used for the VNC server. Also optionally set the top visible process name in Linux. Naming of individual threads can also be enabled on Linux to aid debugging.
Implementations§
Trait Implementations§
Source§impl Arbitrary for Name
impl Arbitrary for Name
Source§type Parameters = (<ShellString as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters)
type Parameters = (<ShellString as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<ShellString as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((ShellString, Option<ShellString>, Option<OnOff>)) -> Name>
type Strategy = Map<(<ShellString as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((ShellString, Option<ShellString>, Option<OnOff>)) -> Name>
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 Ord for Name
impl Ord for Name
Source§impl PartialOrd for Name
impl PartialOrd for Name
Source§impl ToCommand for Name
impl ToCommand for Name
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 Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
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