[][src]Struct avrow::Reader

pub struct Reader<'a, R> { /* fields omitted */ }

Reader is the primary interface for reading data from an avro datafile.

Implementations

impl<'a, R> Reader<'a, R> where
    R: Read
[src]

pub fn new(source: R) -> Result<Self, AvrowErr>[src]

Creates a Reader from an avro encoded readable buffer.

pub fn with_schema(
    source: R,
    reader_schema: &'a Schema
) -> Result<Self, AvrowErr>
[src]

Create a Reader with the given reader schema and a readable buffer.

pub fn meta(&self) -> &HashMap<String, Vec<u8>>[src]

Retrieves a reference to the header metadata map.

Trait Implementations

impl<'a, 's, R: Read, '_> Iterator for Reader<'_, R>[src]

type Item = Result<Value, AvrowErr>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for Reader<'a, R> where
    R: RefUnwindSafe

impl<'a, R> Send for Reader<'a, R> where
    R: Send

impl<'a, R> Sync for Reader<'a, R> where
    R: Sync

impl<'a, R> Unpin for Reader<'a, R> where
    R: Unpin

impl<'a, R> UnwindSafe for Reader<'a, 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<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.