Struct hiirc::Settings [] [src]

pub struct Settings<'a> {
    pub addr: &'a str,
    pub nickname: &'a str,
    pub username: &'a str,
    pub realname: &'a str,
    pub reconnection: ReconnectionSettings,
    pub monitor: Option<MonitorSettings>,
    pub auto_ident: bool,
    pub auto_ping: bool,
    pub encoding: EncodingRef,
    pub password: &'a str,
}

Settings for the dispatcher.

Fields

Address of the irc server.

Preferred nickname.

Username.

Real name.

Reconnection settings. If None, reconnection is disabled.

Monitor settings. If None, monitoring is disabled.

Automatically identify after reconnection.

Automatically reply to ping requests.

Encoding used for the connection.

Server password

Methods

impl<'a> Settings<'a>
[src]

[src]

Create new settings with sensible default values.

The default values are:

Be careful when using this code, it's not being tested!
username: "hiirc",
realname: "hiirc",
reconnection: ReonnectionSettings::DoNotReconnect,
monitor: None,
auto_ident: true,
auto_ping: true,
encoding: UTF_8,

[src]

Modify the username.

[src]

Modify the realname.

[src]

Modify the reconnection settings.

[src]

Modify the monitor settings.

[src]

Enable/disable automatic indentification.

[src]

Enable/disable automatic ping replies.

[src]

Modify the encoding used for this connection.

[src]

Modify the server password.

[src]

Connect to the server and begin dispatching events using the given Listener.