[−][src]Struct utimeseries::TimeseriesReader
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]
ⓘImportant traits for TimestampIterator<T, R>
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]
ⓘImportant traits for BlockIterator<T, R>
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]
ⓘImportant traits for RecordIterator<T, R>
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,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, R> Send for TimeseriesReader<T, R> where
R: Send,
T: Send,
R: Send,
T: Send,
impl<T, R> Sync for TimeseriesReader<T, R> where
R: Sync,
T: Sync,
R: Sync,
T: Sync,
impl<T, R> Unpin for TimeseriesReader<T, R> where
R: Unpin,
T: Unpin,
R: Unpin,
T: Unpin,
impl<T, R> UnwindSafe for TimeseriesReader<T, R> where
R: UnwindSafe,
T: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,