pub enum ModePreference {
Preferred,
Exact {
width: u16,
height: u16,
},
ExactRefresh {
width: u16,
height: u16,
vrefresh: u32,
},
Largest,
}Expand description
Which mode to set on it.
Variants§
Preferred
Whatever the driver flagged as preferred — a fixed panel’s native resolution. Correct for essentially every embedded display.
Exact
A specific resolution, at any refresh rate.
ExactRefresh
A specific resolution at a specific refresh rate.
Fields
Largest
The highest pixel count on offer.
Trait Implementations§
Source§impl Clone for ModePreference
impl Clone for ModePreference
Source§fn clone(&self) -> ModePreference
fn clone(&self) -> ModePreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModePreference
Source§impl Debug for ModePreference
impl Debug for ModePreference
Source§impl Default for ModePreference
impl Default for ModePreference
Source§fn default() -> ModePreference
fn default() -> ModePreference
Returns the “default value” for a type. Read more
impl Eq for ModePreference
Source§impl PartialEq for ModePreference
impl PartialEq for ModePreference
impl StructuralPartialEq for ModePreference
Auto Trait Implementations§
impl Freeze for ModePreference
impl RefUnwindSafe for ModePreference
impl Send for ModePreference
impl Sync for ModePreference
impl Unpin for ModePreference
impl UnsafeUnpin for ModePreference
impl UnwindSafe for ModePreference
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