Enum ddc_hi::Handle
[−]
[src]
pub enum Handle { // some variants omitted }
A handle allowing communication with a display
Methods
impl Handle
[src]
pub fn capabilities(&mut self) -> Result<Capabilities, Error>
[src]
Request and parse the display's capabilities string.
Trait Implementations
impl DdcHost for Handle
[src]
type Error = Error
An error that can occur when communicating with a DDC device. Read more
fn sleep(&mut self)
[src]
Wait for any previous commands to complete. Read more
impl Ddc for Handle
[src]
fn capabilities_string(&mut self) -> Result<Vec<u8>, Self::Error>
[src]
Retrieve the capability string from the device. Read more
fn get_vcp_feature(
&mut self,
code: FeatureCode
) -> Result<VcpValue, Self::Error>
[src]
&mut self,
code: FeatureCode
) -> Result<VcpValue, Self::Error>
Gets the current value of an MCCS VCP feature.
fn set_vcp_feature(
&mut self,
code: FeatureCode,
value: u16
) -> Result<(), Self::Error>
[src]
&mut self,
code: FeatureCode,
value: u16
) -> Result<(), Self::Error>
Sets a VCP feature to the specified value.
fn save_current_settings(&mut self) -> Result<(), Self::Error>
[src]
Instructs the device to save its current settings.
fn get_timing_report(&mut self) -> Result<TimingMessage, Self::Error>
[src]
Retrieves a timing report from the device.
impl DdcTable for Handle
[src]
fn table_read(&mut self, code: FeatureCode) -> Result<Vec<u8>, Self::Error>
[src]
Read a table value from the device.
fn table_write(
&mut self,
code: FeatureCode,
offset: u16,
value: &[u8]
) -> Result<(), Self::Error>
[src]
&mut self,
code: FeatureCode,
offset: u16,
value: &[u8]
) -> Result<(), Self::Error>
Write a table value to the device.