Skip to main content

Metrics

Trait Metrics 

Source
pub trait Metrics {
    type Socket: Socket;

    // Required methods
    async fn list(
        &mut self,
    ) -> Result<impl Stream<Item = Result<Result<ListOutput, MetricsError>>>>;
    async fn describe(
        &mut self,
    ) -> Result<impl Stream<Item = Result<Result<DescribeOutput, MetricsError>>>>;
    fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>;
    fn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>;
}
Expand description

Proxy trait for calling methods on the interface.

Required Associated Types§

Source

type Socket: Socket

The socket type used for the connection.

Required Methods§

Source

async fn list( &mut self, ) -> Result<impl Stream<Item = Result<Result<ListOutput, MetricsError>>>>

A struct representing various metric value types. A metric can be of one type [Requires ‘more’ flag]

Source

async fn describe( &mut self, ) -> Result<impl Stream<Item = Result<Result<DescribeOutput, MetricsError>>>>

Method to get the metric families [Requires ‘more’ flag]

Source

fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Start a chain with this method call.

Source

fn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Start a chain with this method call.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S> Metrics for Connection<S>
where S: Socket,

Source§

type Socket = S

Source§

async fn list( &mut self, ) -> Result<impl Stream<Item = Result<Result<ListOutput, MetricsError>>>>

Source§

async fn describe( &mut self, ) -> Result<impl Stream<Item = Result<Result<DescribeOutput, MetricsError>>>>

Source§

fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Source§

fn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Implementors§