[][src]Struct clarity_repl::clarity::util::retry::RetryReader

pub struct RetryReader<'a, R: Read> { /* fields omitted */ }

Wrap a Read so that we store a copy of what was read. Used for re-trying reads when we don't know what to expect from the stream.

Implementations

impl<'a, R: Read> RetryReader<'a, R>[src]

pub fn new(fd: &'a mut R) -> RetryReader<'a, R>

Notable traits for RetryReader<'a, R>

impl<'a, R: Read> Read for RetryReader<'a, R>
[src]

pub fn set_position(&mut self, offset: usize)[src]

pub fn position(&self) -> usize[src]

Trait Implementations

impl<'a, R: Read> Read for RetryReader<'a, R>[src]

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for RetryReader<'a, R> where
    R: RefUnwindSafe

impl<'a, R> Send for RetryReader<'a, R> where
    R: Send

impl<'a, R> Sync for RetryReader<'a, R> where
    R: Sync

impl<'a, R> Unpin for RetryReader<'a, R>

impl<'a, R> !UnwindSafe for RetryReader<'a, R>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.