[][src]Struct graph_http::byterange::ByteRangeIterator

pub struct ByteRangeIterator { /* fields omitted */ }

Implementations

impl ByteRangeIterator[src]

pub fn new(
    file_size: u64,
    byte_range: VecDeque<(u64, u64, Vec<u8>)>
) -> ByteRangeIterator

Notable traits for ByteRangeIterator

impl Iterator for ByteRangeIterator type Item = (Vec<u8>, u64, String);
[src]

pub fn from_range<P: AsRef<Path>>(
    start: u64,
    end: u64,
    file: P
) -> GraphResult<ByteRangeIterator>
[src]

pub async fn async_from_range<P: AsRef<Path>>(
    start: u64,
    end: u64,
    file: P
) -> GraphResult<ByteRangeIterator>
[src]

pub async fn try_from_async(value: PathBuf) -> GraphResult<ByteRangeIterator>[src]

pub fn file_size(&self) -> u64[src]

pub fn is_empty(&self) -> bool[src]

pub fn pop_front(&mut self) -> Option<(Vec<u8>, u64, String)>[src]

pub fn clear(&mut self)[src]

Trait Implementations

impl AsyncTryFrom<PathBuf, ByteRangeIterator> for ByteRangeIterator[src]

type Error = GraphFailure

impl Debug for ByteRangeIterator[src]

impl Default for ByteRangeIterator[src]

impl Iterator for ByteRangeIterator[src]

type Item = (Vec<u8>, u64, String)

The type of the elements being iterated over.

impl TryFrom<PathBuf> for ByteRangeIterator[src]

type Error = GraphFailure

The type returned in the event of a conversion error.

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.