Skip to main content

Crate ringline_ping

Crate ringline_ping 

Source
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

PathCopiesMechanism
Recv0with_data() pattern-matches PONG\r\n – no value extraction.
Send16-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.
ClientBuilder
Builder for creating a Client with per-request callbacks and metrics.
ClientMetrics
Built-in histogram-based metrics, available when the metrics feature is enabled.
CommandResult
Result metadata for a completed command, passed to the on_result callback.

Enums§

CommandType
The type of Ping command that completed.
Error
Errors returned by the ringline Ping client.