[][src]Struct glommio::io::StreamReader

pub struct StreamReader { /* fields omitted */ }

Provides linear read access to a BufferedFile.

The StreamReader implements AsyncRead and AsyncBufRead, which can offer the user with a convenient way of issuing reads. However note that this mandates a copy between the OS page cache and an intermediary buffer before it reaches the user-specified buffer

Implementations

impl StreamReader[src]

pub async fn close(self) -> Result<()>[src]

Asynchronously closes the underlying file.

Trait Implementations

impl AsyncBufRead for StreamReader[src]

impl AsyncRead for StreamReader[src]

impl AsyncSeek for StreamReader[src]

impl Debug for StreamReader[src]

impl<'__pin> Unpin for StreamReader where
    __Origin<'__pin>: Unpin
[src]

Auto Trait Implementations

Blanket Implementations

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

impl<R> AsyncBufReadExt for R where
    R: AsyncBufRead + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<S> AsyncSeekExt for S where
    S: AsyncSeek + ?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[src]

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.