[][src]Struct genio::std_impls::GenioRead

pub struct GenioRead<R>(_);

Wrapper providing genio::Read trait for std::io::Read types.

Methods

impl<R: Read> GenioRead<R>[src]

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

Wraps std readerinto genio reader.

pub fn into_inner(self) -> R[src]

Unwraps std reader genio reader.

Trait Implementations

impl<R: Read> Read for GenioRead<R>[src]

type ReadError = Error

Value of this type is returned when read() fails. Read more

fn read_exact(
    &mut self,
    buf: &mut [u8]
) -> Result<(), ReadExactError<Self::ReadError>>
[src]

Read the exact number of bytes required to fill buf. Read more

fn available_bytes(&self, _at_least: usize) -> bool[src]

Hints whether there are at least at_least bytes available. Read more

fn chain<R: Read>(self, other: R) -> Chain<Self, R> where
    Self: Sized
[src]

Chains another reader after self. When self ends (returns Ok(0)), the other reader will provide bytes to read. Read more

fn read_to_end<T: ExtendFromReader>(
    &mut self,
    container: &mut T
) -> Result<usize, ExtendError<Self::ReadError, T::ExtendError>> where
    Self: ReadOverwrite
[src]

Reads all bytes into any type that can be extended by a reader. This is more generic than the case of std::io and might enable some optimizations. Read more

fn by_ref(&mut self) -> &mut Self where
    Self: Sized
[src]

Creates a "by reference" adaptor for this instance of Read. Read more

Auto Trait Implementations

impl<R> Send for GenioRead<R> where
    R: Send

impl<R> Sync for GenioRead<R> where
    R: Sync

Blanket Implementations

impl<R> ReadExt for R where
    R: Read + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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