Trait ddc::Ddc
[−]
[src]
pub trait Ddc: DdcHost { fn capabilities_string(&mut self) -> Result<Vec<u8>, Self::Error>; fn get_vcp_feature(
&mut self,
code: FeatureCode
) -> Result<VcpValue, Self::Error>; fn set_vcp_feature(
&mut self,
code: FeatureCode,
value: u16
) -> Result<(), Self::Error>; fn save_current_settings(&mut self) -> Result<(), Self::Error>; fn get_timing_report(&mut self) -> Result<TimingMessage, Self::Error>; }
A high level interface to DDC commands.
Required Methods
fn capabilities_string(&mut self) -> Result<Vec<u8>, Self::Error>
Retrieve the capability string from the device.
This executes multiple CapabilitiesRequest
commands to construct the entire string.
fn get_vcp_feature(
&mut self,
code: FeatureCode
) -> Result<VcpValue, Self::Error>
&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>
&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>
Instructs the device to save its current settings.
fn get_timing_report(&mut self) -> Result<TimingMessage, Self::Error>
Retrieves a timing report from the device.
Implementors
impl<D: DdcCommandMarker> Ddc for D where
D::Error: From<ErrorCode>,