[][src]Struct ilda_idtf::SectionReader

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

Reads a sequence of frames from the ILDA IDTF spec from a stream of bytes.

Reads Sections.

Methods

impl<R> SectionReader<R> where
    R: Read
[src]

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

Read ILDA IDTF sections from the given reader.

pub fn read_next(&mut self) -> Result<Option<Section<&mut R>>>[src]

Begin reading the next Section.

A successfully read Section contains a verified Header and a reader for the section contents.

Auto Trait Implementations

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

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

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

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

impl<R> UnwindSafe for SectionReader<R> where
    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.