Expand description
ringline-native Ping client for use inside the ringline async runtime.
This client wraps a ringline::ConnCtx and provides a typed ping()
method that sends PING\r\n and waits for a PONG response.
§Example
use ringline::ConnCtx;
use ringline_ping::Client;
async fn example(conn: ConnCtx) -> Result<(), ringline_ping::Error> {
let mut client = Client::new(conn);
client.ping().await?;
Ok(())
}§Copy Semantics
| Path | Copies | Mechanism |
|---|---|---|
| Recv | 0 | with_data() pattern-matches PONG\r\n – no value extraction. |
| Send | 1 | 6-byte PING\r\n copied into the send pool. |
Re-exports§
pub use pool::Pool;pub use pool::PoolConfig;
Modules§
- pool
- Connection pool for ringline-ping.
Structs§
- Client
- A ringline-native Ping client wrapping a single connection.
- Client
Builder - Builder for creating a
Clientwith per-request callbacks and metrics. - Client
Metrics - Built-in histogram-based metrics, available when the
metricsfeature is enabled. - Command
Result - Result metadata for a completed command, passed to the
on_resultcallback.
Enums§
- Command
Type - The type of Ping command that completed.
- Error
- Errors returned by the ringline Ping client.