[][src]Struct lognplot::tsdb::Observation

pub struct Observation<V> {
    pub timestamp: TimeStamp,
    pub value: V,
}

A single observation at some point in time.

Fields

timestamp: TimeStamp

The timestamp when the observation was made.

value: V

The observed value.

Methods

impl<V> Observation<V>[src]

pub fn new(timestamp: TimeStamp, value: V) -> Self[src]

Create a new observation at a given time.

Trait Implementations

impl<V, M> From<Observation<V>> for Aggregation<V, M> where
    M: Metrics<V> + From<V> + Clone
[src]

impl<V: Clone> Clone for Observation<V>[src]

impl<V: Debug> Debug for Observation<V>[src]

Auto Trait Implementations

impl<V> Send for Observation<V> where
    V: Send

impl<V> Sync for Observation<V> where
    V: Sync

impl<V> Unpin for Observation<V> where
    V: Unpin

impl<V> UnwindSafe for Observation<V> where
    V: UnwindSafe

impl<V> RefUnwindSafe for Observation<V> where
    V: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]