pub struct InMemoryTelemetryStore { /* private fields */ }Trait Implementations§
Source§impl Clone for InMemoryTelemetryStore
impl Clone for InMemoryTelemetryStore
Source§fn clone(&self) -> InMemoryTelemetryStore
fn clone(&self) -> InMemoryTelemetryStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryTelemetryStore
impl Debug for InMemoryTelemetryStore
Source§impl Default for InMemoryTelemetryStore
impl Default for InMemoryTelemetryStore
Source§fn default() -> InMemoryTelemetryStore
fn default() -> InMemoryTelemetryStore
Returns the “default value” for a type. Read more
Source§impl TelemetryStore for InMemoryTelemetryStore
impl TelemetryStore for InMemoryTelemetryStore
fn write_metric(&mut self, sample: MetricSample) -> Result<(), TelemetryError>
fn latest_metrics(&self) -> Result<Vec<MetricSample>, TelemetryError>
fn metrics_between( &self, from: &str, to: &str, ) -> Result<Vec<MetricSample>, TelemetryError>
fn write_event(&mut self, event: DockerEvent) -> Result<(), TelemetryError>
fn events_between( &self, from: &str, to: &str, ) -> Result<Vec<DockerEvent>, TelemetryError>
fn write_snapshot( &mut self, snapshot: TelemetrySnapshot, ) -> Result<(), TelemetryError>
fn snapshot_at_or_before( &self, timestamp: &str, ) -> Result<Option<TelemetrySnapshot>, TelemetryError>
fn all_snapshots(&self) -> Result<Vec<TelemetrySnapshot>, TelemetryError>
fn write_alert_event( &mut self, event: AlertHistoryEvent, ) -> Result<(), TelemetryError>
fn alert_history( &self, _from: &str, _to: &str, ) -> Result<Vec<AlertHistoryEvent>, TelemetryError>
Auto Trait Implementations§
impl Freeze for InMemoryTelemetryStore
impl RefUnwindSafe for InMemoryTelemetryStore
impl Send for InMemoryTelemetryStore
impl Sync for InMemoryTelemetryStore
impl Unpin for InMemoryTelemetryStore
impl UnsafeUnpin for InMemoryTelemetryStore
impl UnwindSafe for InMemoryTelemetryStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more