[][src]Trait metrics_core::AsyncSnapshotProvider

pub trait AsyncSnapshotProvider {
type Snapshot: Snapshot;
type SnapshotError;
type SnapshotFuture: Future<Item = Self::Snapshot, Error = Self::SnapshotError>;
    fn get_snapshot_async(&self) -> Self::SnapshotFuture;
}

A value that can provide on-demand snapshots asynchronously.

Associated Types

type Snapshot: Snapshot

type SnapshotError

type SnapshotFuture: Future<Item = Self::Snapshot, Error = Self::SnapshotError>

Loading content...

Required methods

fn get_snapshot_async(&self) -> Self::SnapshotFuture

Gets a snapshot asynchronously.

Loading content...

Implementors

Loading content...