Struct smithay_client_toolkit::output::Mode
source · [−]pub struct Mode {
pub dimensions: (i32, i32),
pub refresh_rate: i32,
pub is_current: bool,
pub is_preferred: bool,
}
Expand description
A possible mode for an output
Fields
dimensions: (i32, i32)
Number of pixels of this mode in format (width, height)
for example (1920, 1080)
refresh_rate: i32
Refresh rate for this mode, in mHz
is_current: bool
Whether this is the current mode for this output
is_preferred: bool
Whether this is the preferred mode for this output
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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