[][src]Struct cdchunking::ChunkStream

pub struct ChunkStream<R: Read, I: ChunkerImpl> { /* fields omitted */ }

Implementations

impl<R: Read, I: ChunkerImpl> ChunkStream<R, I>[src]

pub fn read<'a>(&'a mut self) -> Option<Result<ChunkInput<'a>>>[src]

Iterate on the chunks, returning ChunkInput items.

An item is either some data that is part of the current chunk, or End, indicating the boundary between chunks.

End is always returned at the end of the last chunk.

Auto Trait Implementations

impl<R, I> RefUnwindSafe for ChunkStream<R, I> where
    I: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, I> Send for ChunkStream<R, I> where
    I: Send,
    R: Send

impl<R, I> Sync for ChunkStream<R, I> where
    I: Sync,
    R: Sync

impl<R, I> Unpin for ChunkStream<R, I> where
    I: Unpin,
    R: Unpin

impl<R, I> UnwindSafe for ChunkStream<R, I> where
    I: UnwindSafe,
    R: UnwindSafe

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, 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.