Struct swayipc_async::Output
source · [−]#[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
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
sourceimpl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Output, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Output, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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