[][src]Struct cec_rs::CecConfiguration

pub struct CecConfiguration {
    pub device_name: String,
    pub device_types: CecDeviceTypeVec,
    pub autodetect_address: Option<bool>,
    pub physical_address: Option<u16>,
    pub base_device: Option<CecLogicalAddress>,
    pub hdmi_port: Option<u8>,
    pub tv_vendor: Option<u32>,
    pub wake_devices: Option<CecLogicalAddresses>,
    pub power_off_devices: Option<CecLogicalAddresses>,
    pub server_version: Option<u32>,
    pub get_settings_from_rom: Option<bool>,
    pub activate_source: Option<bool>,
    pub power_off_on_standby: Option<bool>,
    pub logical_addresses: Option<CecLogicalAddresses>,
    pub firmware_version: Option<u16>,
    pub device_language: Option<String>,
    pub firmware_build_date_epoch_secs: Option<u32>,
    pub monitor_only: Option<bool>,
    pub adapter_type: Option<CecAdapterType>,
    pub combo_key: Option<CecUserControlCode>,
    pub combo_key_timeout: Option<Duration>,
    pub button_repeat_rate: Option<Duration>,
    pub button_release_delay: Option<Duration>,
    pub double_tap_timeout: Option<Duration>,
    pub autowake_avr: Option<bool>,
}

Fields

device_name: Stringdevice_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

button_repeat_rate: Option<Duration>

< rate at which buttons autorepeat. 0 means rely on CEC device

button_release_delay: Option<Duration>

< 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]

Trait Implementations

impl From<CecConfiguration> for libcec_configuration[src]

impl Clone for CecConfiguration[src]

impl Eq for CecConfiguration[src]

impl PartialEq<CecConfiguration> for CecConfiguration[src]

impl Debug for CecConfiguration[src]

impl StructuralPartialEq for CecConfiguration[src]

impl StructuralEq for CecConfiguration[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]