[−][src]Struct cec_rs::CecConfiguration
Fields
device_name: String
device_types: CecDeviceTypeVec
< the device type(s) to use on the CEC bus for libCEC
autodetect_address: Option<bool>
< (read only) set to 1 by libCEC when the physical address was autodetected
physical_address: Option<u16>
< the physical address of the CEC adapter
base_device: Option<CecLogicalAddress>
< the logical address of the device to which the adapter is connected. only used when iPhysicalAddress = 0 or when the adapter doesn't support autodetection
hdmi_port: Option<u8>
< the HDMI port to which the adapter is connected. only used when iPhysicalAddress = 0 or when the adapter doesn't support autodetection
tv_vendor: Option<u32>
< override the vendor ID of the TV. leave this untouched to autodetect
wake_devices: Option<CecLogicalAddresses>
< list of devices to wake when initialising libCEC or when calling PowerOnDevices() without any parameter.
power_off_devices: Option<CecLogicalAddresses>
< list of devices to power off when calling StandbyDevices() without any parameter.
server_version: Option<u32>
< the version number of the server. read-only
get_settings_from_rom: Option<bool>
< true to get the settings from the ROM (if set, and a v2 ROM is present), false to use these settings.
activate_source: Option<bool>
< make libCEC the active source on the bus when starting the player application
power_off_on_standby: Option<bool>
< put this PC in standby mode when the TV is switched off. only used when bShutdownOnStandby = 0
logical_addresses: Option<CecLogicalAddresses>
< (read-only) the current logical addresses. added in 1.5.3
firmware_version: Option<u16>
< (read-only) the firmware version of the adapter. added in 1.6.0
device_language: Option<String>
< the menu language used by the client. 3 character ISO 639-2 country code. see http://http://www.loc.gov/standards/iso639-2/ added in 1.6.2
firmware_build_date_epoch_secs: Option<u32>
< (read-only) the build date of the firmware, in seconds since epoch. if not available, this value will be set to 0. added in 1.6.2
monitor_only: Option<bool>
< won't allocate a CCECClient when starting the connection when set (same as monitor mode). added in 1.6.3
adapter_type: Option<CecAdapterType>
< type of the CEC adapter that we're connected to. added in 1.8.2
combo_key: Option<CecUserControlCode>
< key code that initiates combo keys. defaults to CEC_USER_CONTROL_CODE_F1_BLUE. CEC_USER_CONTROL_CODE_UNKNOWN to disable. added in 2.0.5
combo_key_timeout: Option<Duration>
< timeout until the combo key is sent as normal keypress
< rate at which buttons autorepeat. 0 means rely on CEC device
< duration after last update until a button is considered released
double_tap_timeout: Option<Duration>
< prevent double taps within this timeout. defaults to 200ms. added in 4.0.0
autowake_avr: Option<bool>
< set to 1 to automatically waking an AVR when the source is activated. added in 4.0.0
Methods
impl CecConfiguration
[src]
pub fn new(
device_name: &str,
device_types: CecDeviceTypeVec
) -> CecConfiguration
[src]
device_name: &str,
device_types: CecDeviceTypeVec
) -> CecConfiguration
Trait Implementations
impl From<CecConfiguration> for libcec_configuration
[src]
fn from(config: CecConfiguration) -> libcec_configuration
[src]
impl Clone for CecConfiguration
[src]
fn clone(&self) -> CecConfiguration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for CecConfiguration
[src]
impl PartialEq<CecConfiguration> for CecConfiguration
[src]
fn eq(&self, other: &CecConfiguration) -> bool
[src]
fn ne(&self, other: &CecConfiguration) -> bool
[src]
impl Debug for CecConfiguration
[src]
impl StructuralPartialEq for CecConfiguration
[src]
impl StructuralEq for CecConfiguration
[src]
Auto Trait Implementations
impl Send for CecConfiguration
impl Sync for CecConfiguration
impl Unpin for CecConfiguration
impl UnwindSafe for CecConfiguration
impl RefUnwindSafe for CecConfiguration
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,