Struct irc::client::conn::MockConnection [] [src]

pub struct MockConnection { /* fields omitted */ }

A mock connection for testing purposes.

Methods

impl MockConnection
[src]

Creates a new mock connection with an empty read buffer.

Creates a new mock connection with the specified string in the read buffer.

Creates a new mock connection with the specified bytes in the read buffer.

Trait Implementations

impl Connection for MockConnection
[src]

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. Read more

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