Struct niri_ipc::ConfiguredMode
source · pub struct ConfiguredMode {
pub width: u16,
pub height: u16,
pub refresh: Option<f64>,
}
Expand description
Output mode as set in the config file.
Fields§
§width: u16
Width in physical pixels.
height: u16
Height in physical pixels.
refresh: Option<f64>
Refresh rate.
Trait Implementations§
source§impl Clone for ConfiguredMode
impl Clone for ConfiguredMode
source§fn clone(&self) -> ConfiguredMode
fn clone(&self) -> ConfiguredMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfiguredMode
impl Debug for ConfiguredMode
source§impl<'de> Deserialize<'de> for ConfiguredMode
impl<'de> Deserialize<'de> for ConfiguredMode
source§fn 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
source§impl FromStr for ConfiguredMode
impl FromStr for ConfiguredMode
source§impl PartialEq for ConfiguredMode
impl PartialEq for ConfiguredMode
source§impl Serialize for ConfiguredMode
impl Serialize for ConfiguredMode
impl Copy for ConfiguredMode
impl StructuralPartialEq for ConfiguredMode
Auto Trait Implementations§
impl Freeze for ConfiguredMode
impl RefUnwindSafe for ConfiguredMode
impl Send for ConfiguredMode
impl Sync for ConfiguredMode
impl Unpin for ConfiguredMode
impl UnwindSafe for ConfiguredMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)