[][src]Struct utimeseries::TimeseriesReader

pub struct TimeseriesReader<T, R> { /* fields omitted */ }

Wraps a reader and reads blocks from it.

Methods

impl<T: Sized + Copy, R: Read + Seek> TimeseriesReader<T, R>[src]

pub fn open(stream: R) -> Result<Self, Error>[src]

Creates a new TimeseriesReader with the parameters read from the header at the beginning of stream.

pub fn refresh(&mut self) -> Result<(), Error>[src]

Checks if the underlying reader has new blocks and makes them available for reading.

pub fn start_time(&self) -> SystemTime[src]

The start time of the time series, as read from the file header.

pub fn interval(&self) -> Duration[src]

The interval of the time series, as read from the file header.

Important traits for TimestampIterator<T, R>
pub fn into_timestamp_iterator(self) -> TimestampIterator<T, R>[src]

Returns a new TimestampIterator, with the timestamps of all blocks starting from the current position of the reader.

Important traits for BlockIterator<T, R>
pub fn into_block_iterator(self) -> BlockIterator<T, R>[src]

Returns a new BlockIterator, with the all blocks starting from the current position of the reader.

Important traits for RecordIterator<T, R>
pub fn into_record_iterator(self) -> RecordIterator<T, R>[src]

Returns a new RecordIterator, that goes through all records starting from the current position of the reader.

Auto Trait Implementations

impl<T, R> RefUnwindSafe for TimeseriesReader<T, R> where
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, R> Send for TimeseriesReader<T, R> where
    R: Send,
    T: Send

impl<T, R> Sync for TimeseriesReader<T, R> where
    R: Sync,
    T: Sync

impl<T, R> Unpin for TimeseriesReader<T, R> where
    R: Unpin,
    T: Unpin

impl<T, R> UnwindSafe for TimeseriesReader<T, R> where
    R: UnwindSafe,
    T: 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.