Trait irc::client::conn::Connection [] [src]

pub trait Connection {
    fn send(&self, msg: &str, encoding: &str) -> Result<()>;
    fn recv(&self, encoding: &str) -> Result<String>;
    fn written(&self, encoding: &str) -> Option<String>;
    fn reconnect(&self) -> Result<()>;
}

A connection.

Required Methods

Sends a message over this connection.

Receives a single line from this connection.

Gets the full record of all sent messages if the Connection records this. This is intended for use in writing tests.

Re-establishes this connection, disconnecting from the existing case if necessary.

Implementors