#[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>,
pub current_mode: Option<Mode>,
pub rect: Rect,
pub focus: Vec<i64>,
pub focused: bool,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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>
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<i64>
§focused: bool