[−][src]Struct sensorlog::Sensorlog
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]
&self,
time: Option<u64>,
sensor_id: &str,
data: &str
) -> Result<(), Error>
pub fn fetch_measurements(
&self,
sensor_id: &str,
time_start: Option<u64>,
time_limit: Option<u64>,
limit: Option<u64>
) -> Result<Vec<Measurement>, Error>
[src]
&self,
sensor_id: &str,
time_start: Option<u64>,
time_limit: Option<u64>,
limit: Option<u64>
) -> Result<Vec<Measurement>, Error>
pub fn set_storage_quota_for(&mut self, sensor_id: &str, quota: StorageQuota)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sensorlog
impl Send for Sensorlog
impl Sync for Sensorlog
impl Unpin for Sensorlog
impl UnwindSafe for Sensorlog
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,