pub struct Monitor { /* private fields */ }
Expand description
A handle to an attached monitor that allows the use of DDC/CI operations.
Implementations§
source§impl Monitor
impl Monitor
sourcepub fn enumerate() -> Result<Vec<Self>, Error>
pub fn enumerate() -> Result<Vec<Self>, Error>
Enumerate all connected physical monitors returning Vec
sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Physical monitor description string. If it cannot get the product’s name it will use the vendor number and model number to form a description
sourcepub fn serial_number(&self) -> Option<String>
pub fn serial_number(&self) -> Option<String>
Serial number for this Monitor
sourcepub fn product_name(&self) -> Option<String>
pub fn product_name(&self) -> Option<String>
Product name for this Monitor, if available
Trait Implementations§
source§impl DdcCommandRaw for Monitor
impl DdcCommandRaw for Monitor
source§impl DdcCommandRawMarker for Monitor
impl DdcCommandRawMarker for Monitor
source§fn set_sleep_delay(&mut self, delay: Delay)
fn set_sleep_delay(&mut self, delay: Delay)
Sets an internal
Delay
that must expire before the next command is
attempted.impl DdcCommandMarker for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl !Send for Monitor
impl !Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
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<D> Ddc for D
impl<D> Ddc for D
source§fn capabilities_string(&mut self) -> Result<Vec<u8>, <D as DdcHost>::Error>
fn capabilities_string(&mut self) -> Result<Vec<u8>, <D as DdcHost>::Error>
Retrieve the capability string from the device. Read more
source§fn get_vcp_feature(&mut self, code: u8) -> Result<Value, <D as DdcHost>::Error>
fn get_vcp_feature(&mut self, code: u8) -> Result<Value, <D as DdcHost>::Error>
Gets the current value of an MCCS VCP feature.
source§fn set_vcp_feature(
&mut self,
code: u8,
value: u16,
) -> Result<(), <D as DdcHost>::Error>
fn set_vcp_feature( &mut self, code: u8, value: u16, ) -> Result<(), <D as DdcHost>::Error>
Sets a VCP feature to the specified value.
source§fn save_current_settings(&mut self) -> Result<(), <D as DdcHost>::Error>
fn save_current_settings(&mut self) -> Result<(), <D as DdcHost>::Error>
Instructs the device to save its current settings.
source§fn get_timing_report(&mut self) -> Result<TimingMessage, <D as DdcHost>::Error>
fn get_timing_report(&mut self) -> Result<TimingMessage, <D as DdcHost>::Error>
Retrieves a timing report from the device.
source§impl<D> DdcCommand for D
impl<D> DdcCommand for D
source§fn execute<C>(
&mut self,
command: C,
) -> Result<<C as Command>::Ok, <D as DdcHost>::Error>where
C: Command,
fn execute<C>(
&mut self,
command: C,
) -> Result<<C as Command>::Ok, <D as DdcHost>::Error>where
C: Command,
Execute a DDC/CI command. See the
commands
module for all available
commands. The return type is dependent on the executed command.