pub struct Output {
pub name: String,
pub active: bool,
pub primary: bool,
pub current_workspace: Option<String>,
pub rect: (i32, i32, i32, i32),
}Expand description
A single output (display)
Fields§
§name: StringThe name of this output (as seen in xrandr).
active: boolWhether the output is currently active (has a valid mode).
primary: boolWhether the output is currently the primary output.
current_workspace: Option<String>The name of the current workspace that is visible on this output. None if the output is not active.
rect: (i32, i32, i32, i32)The rectangle of this output (equals the rect of the output it is on), consists of x, y, width, height.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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