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§
Required Methods§
Sourceasync fn list(
&mut self,
) -> Result<impl Stream<Item = Result<Result<ListOutput, MetricsError>>>>
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]
Sourceasync fn describe(
&mut self,
) -> Result<impl Stream<Item = Result<Result<DescribeOutput, MetricsError>>>>
async fn describe( &mut self, ) -> Result<impl Stream<Item = Result<Result<DescribeOutput, MetricsError>>>>
Method to get the metric families [Requires ‘more’ flag]
Sourcefn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>
fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>
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".