[][src]Module twitchchat::helpers

Helpers for writing tests

Structs

RateLimit

RateLimit is a simple token bucket-style rate limiter

TeeReader

TeeReader takes in a std::io::Read and a std::io::Write and mirrors all "reads" to the writer

TeeWriter

TeeWriter takes two std::io::Write and mirrors all "writes" to the other writer

TestStream

TestStream is a thread-safe TcpStream-like type thats usable to mock the Client