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 vrr_supported: bool,
pub vrr_enabled: bool,
pub logical: Option<LogicalOutput>,
}
Expand description
Connected output.
Fields§
§name: String
Name of the output.
make: String
Textual description of the manufacturer.
model: String
Textual 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.
vrr_supported: bool
Whether the output supports variable refresh rate.
vrr_enabled: bool
Whether 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)