#[non_exhaustive]
pub struct Output {
Show 17 fields pub id: Option<i64>, pub name: String, pub make: String, pub model: String, pub serial: String, pub active: bool, pub dpms: bool, pub primary: bool, pub scale: Option<f64>, pub subpixel_hinting: Option<String>, pub transform: Option<String>, pub current_workspace: Option<String>, pub modes: Vec<Mode, Global>, pub current_mode: Option<Mode>, pub rect: Rect, pub focus: Vec<i32, Global>, pub focused: bool,
}

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
id: Option<i64>name: String

The name of the output. On DRM, this is the connector.

make: String

The make of the output.

model: String

The model of the output.

serial: String

The output’s serial number as a hexa‐ decimal string.

active: bool

Whether this output is active/enabled.

dpms: bool

Whether this output is on/off (via DPMS).

primary: bool

For i3 compatibility, this will be false. It does not make sense in Wayland.

scale: Option<f64>

The scale currently in use on the output or -1 for disabled outputs.

subpixel_hinting: Option<String>

The subpixel hinting current in use on the output. This can be rgb, bgr, vrgb, vbgr, or none.

transform: Option<String>

The transform currently in use for the output. This can be normal, 90, 180, 270, flipped-90, flipped-180, or flipped-270.

current_workspace: Option<String>

The workspace currently visible on the output or null for disabled outputs.

modes: Vec<Mode, Global>

An array of supported mode objects. Each object contains width, height, and refresh.

current_mode: Option<Mode>

An object representing the current mode containing width, height, and refresh.

rect: Rect

The bounds for the output consisting of x, y, width, and height.

focus: Vec<i32, Global>focused: bool

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.