pub enum Value {
Bool(bool),
Integer(i64),
String(String),
}
Expand description
A value passed to a QEMU plugin via the command line, either as a boolean,
integer, or string. Booleans are parsed using the qemu_plugin_bool_parse
function, integers are parsed from strings, and strings are taken as-is.
Variants§
Bool(bool)
A boolean argument to a QEMU plugin, for example val=true
or val=on
see https://www.qemu.org/docs/master/devel/tcg-plugins.html#c.qemu_plugin_bool_parse
Integer(i64)
An integer argument to a QEMU plugin, for example val=1
String(String)
A string argument to a QEMU plugin, for example val=foo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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