Skip to main content

TelemetryConnections

Trait TelemetryConnections 

Source
pub trait TelemetryConnections:
    Send
    + Sync
    + 'static {
    // Required method
    fn open_connection(
        &self,
        preferred: Option<i32>,
    ) -> Option<(i32, Arc<Connection>)>;
}
Expand description

The connections that a reporter sends on.

Required Methods§

Source

fn open_connection( &self, preferred: Option<i32>, ) -> Option<(i32, Arc<Connection>)>

An open connection with its broker id, preferring the broker of preferred while it stays open. Per KIP-714 a client keeps pushing to the same broker. None when no connection is open.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§