[][src]Struct sensorlog::Sensorlog

pub struct Sensorlog {
    pub logfile_map: LogfileMap,
}

Fields

logfile_map: LogfileMap

Implementations

impl Sensorlog[src]

pub fn new(datadir: &Path, logfile_config: LogfileConfig) -> Result<Self, Error>[src]

pub fn store_measurement(
    &self,
    time: Option<u64>,
    sensor_id: &str,
    data: &str
) -> Result<(), Error>
[src]

pub fn fetch_measurements(
    &self,
    sensor_id: &str,
    time_start: Option<u64>,
    time_limit: Option<u64>,
    limit: Option<u64>
) -> Result<Vec<Measurement>, Error>
[src]

pub fn set_storage_quota_for(&mut self, sensor_id: &str, quota: StorageQuota)[src]

Trait Implementations

impl Clone for Sensorlog[src]

impl Debug for Sensorlog[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.