Struct loirc::Writer [] [src]

pub struct Writer { /* fields omitted */ }

Used to send messages to the IRC server.

This object is thread safe. You can clone it and send the clones to other threads. You can write from multiple threads without any issue. Internally, it uses Arc and Mutex.

Methods

impl Writer
[src]

Drop the connection and trigger the reconnection process.

There might be a reconnection attempt, based on your settings. This should be used if you want the connection to be re-created. This is not the preferred way of shutting down the connection for good. Use close for this.

Check if the connection was manually closed.

Close the connection and stop listening for messages.

There will not be any reconnection attempt. An error will be returned if the connection is already closed.

Send a raw string to the IRC server.

A new line will be not be added, so make sure that you include it. An error will be returned if the client is disconnected.

Trait Implementations

impl Clone for Writer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more