[][src]Struct twitchchat::SyncReadAdapter

pub struct SyncReadAdapter<R, W> { /* fields omitted */ }

Default Sync Reader that uses an std::io::Read implementation

Methods

impl<R: Read, W> SyncReadAdapter<R, W>[src]

pub fn new(read: R) -> Self[src]

Create a new SyncReadAdapter from an std::io::Read

Trait Implementations

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

type Reader = R

the Innr read type (can be a Unit)

type Error = Error

An Error that can be returned when trying to read a message

Auto Trait Implementations

impl<R, W> Send for SyncReadAdapter<R, W> where
    R: Send,
    W: Send

impl<R, W> Sync for SyncReadAdapter<R, W> where
    R: Sync,
    W: Send

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.