[][src]Struct ara::range_reader::RangeReader

pub struct RangeReader<R> where
    R: ReadAt
{ /* fields omitted */ }

Exposes a section of a ReadAt as an AsyncRead

Implementations

impl<R> RangeReader<R> where
    R: ReadAt + Unpin + 'static, 
[src]

pub const DEFAULT_BUF_LEN: usize[src]

pub fn new(inner: R, range: Range<u64>) -> Result<Self, Error>[src]

Create a new instance with the default buffer length (1 KiB)

pub fn with_buf_len(
    inner: R,
    range: Range<u64>,
    buf_len: usize
) -> Result<Self, Error>
[src]

Create a new instance with a specified buffer length

Trait Implementations

impl<R> AsyncRead for RangeReader<R> where
    R: ReadAt + Unpin + 'static, 
[src]

Auto Trait Implementations

impl<R> !RefUnwindSafe for RangeReader<R>

impl<R> !Send for RangeReader<R>

impl<R> !Sync for RangeReader<R>

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

impl<R> !UnwindSafe for RangeReader<R>

Blanket Implementations

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?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, 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.