[][src]Trait twitchchat::ReadAdapter

pub trait ReadAdapter {
    type Reader;
    fn read_message(&mut self) -> Result<Message, Error>;
fn into_inner(self) -> Self::Reader; }

ReadAdapter allows you to provide your own "reader" for the client

Associated Types

type Reader

the Inner read type (can be a Unit)

Loading content...

Required methods

fn read_message(&mut self) -> Result<Message, Error>

Tries to read a message, otherwise returns a wrapped erro

fn into_inner(self) -> Self::Reader

Consume the adapter and returns the inner reader

Loading content...

Implementors

impl<R: Read> ReadAdapter for SyncReadAdapter<R>[src]

type Reader = R

Loading content...