pub struct Output {
pub name: String,
pub make: String,
pub model: String,
pub serial: Option<String>,
pub physical_size: Option<(u32, u32)>,
pub modes: Vec<Mode>,
pub current_mode: Option<usize>,
pub is_custom_mode: bool,
pub vrr_supported: bool,
pub vrr_enabled: bool,
pub logical: Option<LogicalOutput>,
}Expand description
Connected output.
Fields§
§name: StringName of the output.
make: StringTextual description of the manufacturer.
model: StringTextual description of the model.
serial: Option<String>Serial of the output, if known.
physical_size: Option<(u32, u32)>Physical width and height of the output in millimeters, if known.
modes: Vec<Mode>Available modes for the output.
current_mode: Option<usize>Index of the current mode in Self::modes.
None if the output is disabled.
is_custom_mode: boolWhether the current_mode is a custom mode.
vrr_supported: boolWhether the output supports variable refresh rate.
vrr_enabled: boolWhether variable refresh rate is enabled on the output.
logical: Option<LogicalOutput>Logical output information.
None if the output is not mapped to any logical output (for example, if it is disabled).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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
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