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

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.

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 Copy for MonitorSettings
[src]

impl Clone for MonitorSettings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MonitorSettings
[src]

Formats the value using the given formatter.

impl Eq for MonitorSettings
[src]

impl PartialEq for MonitorSettings
[src]

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

This method tests for !=.

impl Default for MonitorSettings
[src]

Default values are provided for the settings.

They are:

activity_timeout = 60 seconds

ping_timeout = 15 seconds

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