pub struct OutputInfo {
pub name: String,
pub description: String,
pub width: u32,
pub height: u32,
}Expand description
A monitor.
Fields§
§name: StringThe connector name, like DP-3.
description: StringA human-readable name, often the monitor’s model.
width: u32Its mode in pixels, 0 until the compositor says.
height: u32See width.
Trait Implementations§
Source§impl Clone for OutputInfo
impl Clone for OutputInfo
Source§fn clone(&self) -> OutputInfo
fn clone(&self) -> OutputInfo
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 moreSource§impl Debug for OutputInfo
impl Debug for OutputInfo
Source§impl<'de> Deserialize<'de> for OutputInfo
impl<'de> Deserialize<'de> for OutputInfo
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
impl Eq for OutputInfo
Source§impl PartialEq for OutputInfo
impl PartialEq for OutputInfo
Source§impl Serialize for OutputInfo
impl Serialize for OutputInfo
impl StructuralPartialEq for OutputInfo
Auto Trait Implementations§
impl Freeze for OutputInfo
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnsafeUnpin for OutputInfo
impl UnwindSafe for OutputInfo
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