Enum qapi_qmp::DisplayType
source · [−]pub enum DisplayType {
default,
none,
gtk,
sdl,
egl_headless,
curses,
cocoa,
spice_app,
dbus,
}Variants
default
none
gtk
sdl
egl_headless
curses
cocoa
spice_app
dbus
Trait Implementations
sourceimpl Clone for DisplayType
impl Clone for DisplayType
sourcefn clone(&self) -> DisplayType
fn clone(&self) -> DisplayType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DisplayType
impl Debug for DisplayType
sourceimpl<'de> Deserialize<'de> for DisplayType
impl<'de> Deserialize<'de> for DisplayType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Enum for DisplayType
impl Enum for DisplayType
fn discriminant(&self) -> usize
const COUNT: usize = 9usize
const VARIANTS: &'static [Self] = &[ DisplayType::default, DisplayType::none, DisplayType::gtk, DisplayType::sdl, DisplayType::egl_headless, DisplayType::curses, DisplayType::cocoa, DisplayType::spice_app, DisplayType::dbus, ]
const NAMES: &'static [&'static str] = &[ "default", "none", "gtk", "sdl", "egl-headless", "curses", "cocoa", "spice-app", "dbus", ]
fn name(&self) -> &'static str
fn from_name(s: &str) -> Option<Self>
sourceimpl FromStr for DisplayType
impl FromStr for DisplayType
sourceimpl Hash for DisplayType
impl Hash for DisplayType
sourceimpl Ord for DisplayType
impl Ord for DisplayType
sourceimpl PartialEq<DisplayType> for DisplayType
impl PartialEq<DisplayType> for DisplayType
sourceimpl PartialOrd<DisplayType> for DisplayType
impl PartialOrd<DisplayType> for DisplayType
sourcefn partial_cmp(&self, other: &DisplayType) -> Option<Ordering>
fn partial_cmp(&self, other: &DisplayType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for DisplayType
impl Serialize for DisplayType
impl Copy for DisplayType
impl Eq for DisplayType
impl StructuralEq for DisplayType
impl StructuralPartialEq for DisplayType
Auto Trait Implementations
impl RefUnwindSafe for DisplayType
impl Send for DisplayType
impl Sync for DisplayType
impl Unpin for DisplayType
impl UnwindSafe for DisplayType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more