[][src]Struct ttyrec::Reader

pub struct Reader<R> { /* fields omitted */ }

Reads ttyrec frames from a tokio::io::AsyncRead instance.

Methods

impl<R: AsyncRead> Reader<R>[src]

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

Creates a new Reader from a tokio::io::AsyncRead instance.

pub fn poll_read(&mut self) -> Poll<Option<Frame>, Error>[src]

Polls to see if a new frame can be read.

Returns Ok(Async::Ready(Some(frame))) if a frame is available, Ok(Async::Ready(None)) if the underlying reader is done, and Ok(Async::NotReady) if not enough bytes have been read for a full frame.

pub fn offset(&self) -> Option<Duration>[src]

How much the timestamps in this file should be offset by.

See Parser::offset.

Auto Trait Implementations

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

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

impl<R> Unpin for Reader<R> where
    R: Unpin

impl<R> UnwindSafe for Reader<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Reader<R> where
    R: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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