pub struct CecConnectionCfgBuilder { /* private fields */ }
Expand description
Builder for CecConnectionCfg
.
Implementations§
Source§impl CecConnectionCfgBuilder
impl CecConnectionCfgBuilder
pub fn key_press_callback(self, value: Box<FnKeyPress>) -> Self
pub fn command_received_callback(self, value: Box<FnCommand>) -> Self
pub fn log_message_callback(self, value: Box<FnLogMessage>) -> Self
Sourcepub fn port(self, value: CString) -> Self
pub fn port(self, value: CString) -> Self
< the COM port to connect to. leave this untouched to autodetect
pub fn open_timeout(self, value: Duration) -> Self
pub fn device_name(self, value: String) -> Self
Sourcepub fn device_types(self, value: CecDeviceTypeVec) -> Self
pub fn device_types(self, value: CecDeviceTypeVec) -> Self
< the device type(s) to use on the CEC bus for libCEC
Sourcepub fn physical_address(self, value: u16) -> Self
pub fn physical_address(self, value: u16) -> Self
< the physical address of the CEC adapter
Sourcepub fn base_device(self, value: CecLogicalAddress) -> Self
pub fn base_device(self, value: CecLogicalAddress) -> Self
< 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
Sourcepub fn hdmi_port(self, value: u8) -> Self
pub fn hdmi_port(self, value: u8) -> Self
< the HDMI port to which the adapter is connected. only used when iPhysicalAddress = 0 or when the adapter doesn’t support autodetection
Sourcepub fn tv_vendor(self, value: u32) -> Self
pub fn tv_vendor(self, value: u32) -> Self
< override the vendor ID of the TV. leave this untouched to autodetect
Sourcepub fn wake_devices(self, value: CecLogicalAddresses) -> Self
pub fn wake_devices(self, value: CecLogicalAddresses) -> Self
< list of devices to wake when initialising libCEC or when calling PowerOnDevices() without any parameter.
Sourcepub fn power_off_devices(self, value: CecLogicalAddresses) -> Self
pub fn power_off_devices(self, value: CecLogicalAddresses) -> Self
< list of devices to power off when calling StandbyDevices() without any parameter.
Sourcepub fn get_settings_from_rom(self, value: bool) -> Self
pub fn get_settings_from_rom(self, value: bool) -> Self
< true to get the settings from the ROM (if set, and a v2 ROM is present), false to use these settings.
Sourcepub fn activate_source(self, value: bool) -> Self
pub fn activate_source(self, value: bool) -> Self
< make libCEC the active source on the bus when starting the player application
Sourcepub fn power_off_on_standby(self, value: bool) -> Self
pub fn power_off_on_standby(self, value: bool) -> Self
< put this PC in standby mode when the TV is switched off. only used when bShutdownOnStandby = 0
Sourcepub fn device_language(self, value: String) -> Self
pub fn device_language(self, value: String) -> Self
< 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
Sourcepub fn monitor_only(self, value: bool) -> Self
pub fn monitor_only(self, value: bool) -> Self
< won’t allocate a CCECClient when starting the connection when set (same as monitor mode). added in 1.6.3
Sourcepub fn adapter_type(self, value: CecAdapterType) -> Self
pub fn adapter_type(self, value: CecAdapterType) -> Self
< type of the CEC adapter that we’re connected to. added in 1.8.2
Sourcepub fn combo_key(self, value: CecUserControlCode) -> Self
pub fn combo_key(self, value: CecUserControlCode) -> Self
< 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
Sourcepub fn combo_key_timeout(self, value: Duration) -> Self
pub fn combo_key_timeout(self, value: Duration) -> Self
< 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
Sourcepub fn double_tap_timeout(self, value: Duration) -> Self
pub fn double_tap_timeout(self, value: Duration) -> Self
< prevent double taps within this timeout. defaults to 200ms. added in 4.0.0
Sourcepub fn autowake_avr(self, value: bool) -> Self
pub fn autowake_avr(self, value: bool) -> Self
< set to 1 to automatically waking an AVR when the source is activated. added in 4.0.0