Enum loirc::ReconnectionSettings
[−]
[src]
pub enum ReconnectionSettings { DoNotReconnect, Reconnect { max_attempts: u32, delay_between_attempts: Duration, delay_after_disconnect: Duration, }, }
These settings tell the reconnection process how to behave.
Default is implemented for this type, with fairly sensible settings. See the Default trait implementation.
Variants
DoNotReconnect | Don't try to reconnect after failure. | |||||||
Reconnect | Reconnect Fields
|
Trait Implementations
impl Default for ReconnectionSettings
Default settings are provided for this enum.
They are:
max_attempts
= 10
delay_between_attempts
= 5 seconds
delay_after_disconnect
= 60 seconds