Struct loirc::MonitorSettings [] [src]

pub struct MonitorSettings {
    pub activity_timeout: Duration,
    pub ping_timeout: Duration,
}

These settings tell the monitor how to behave.

They allow you to configure the amount of time between the steps.

Fields

activity_timeout: Duration

Amount of time since the last activity.

When the amount of time since the last activity gets higher than this value, tt will trigger a ping request. If there is not a lot of activity, this means that the server will be pinged everytime this duration expires.

ping_timeout: Duration

Amount of time to wait for a ping reply.

When the amount of time since the ping was sent gets higher than this value, and that no activity occured, assume the connection was dropped and trigger and a disconnect.

Trait Implementations

impl PartialEq for MonitorSettings
[src]

fn eq(&self, __arg_0: &MonitorSettings) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &MonitorSettings) -> bool

This method tests for !=.

impl Eq for MonitorSettings
[src]

impl Debug for MonitorSettings
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for MonitorSettings
[src]

fn clone(&self) -> MonitorSettings

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for MonitorSettings
[src]

impl Default for MonitorSettings
[src]

Default values are provided for the settings.

They are:

activity_timeout = 60 seconds

ping_timeout = 15 seconds

fn default() -> MonitorSettings

Returns the "default value" for a type. Read more