TSDBReader

Struct TSDBReader 

Source
pub struct TSDBReader<'a, S: NorFlash> {
    pub entry: TSLEntry,
    /* private fields */
}

Fields§

§entry: TSLEntry

Implementations§

Source§

impl<'a, S: NorFlash> TSDBReader<'a, S>

Source

pub fn new(tsdb: &'a mut TSDB<S>, entry: TSLEntry) -> Self

Trait Implementations§

Source§

impl<'a, S: NorFlash> ErrorType for TSDBReader<'a, S>

Source§

type Error = Error

Error type of all the IO operations on this type.
Source§

impl<'a, S: NorFlash> Read for TSDBReader<'a, S>

Source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>

Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§

fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>

Read the exact number of bytes required to fill buf. Read more
Source§

impl<'a, S: NorFlash> Seek for TSDBReader<'a, S>

Source§

fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Error>

Seek to an offset, in bytes, in a stream.
Source§

fn rewind(&mut self) -> Result<(), Self::Error>

Rewind to the beginning of a stream.
Source§

fn stream_position(&mut self) -> Result<u64, Self::Error>

Returns the current seek position from the start of the stream.

Auto Trait Implementations§

§

impl<'a, S> Freeze for TSDBReader<'a, S>

§

impl<'a, S> RefUnwindSafe for TSDBReader<'a, S>
where S: RefUnwindSafe,

§

impl<'a, S> !Send for TSDBReader<'a, S>

§

impl<'a, S> !Sync for TSDBReader<'a, S>

§

impl<'a, S> Unpin for TSDBReader<'a, S>

§

impl<'a, S> !UnwindSafe for TSDBReader<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.