pub struct Client { /* private fields */ }Expand description
A ringline-native Ping client wrapping a single connection.
Client::new(conn) creates a zero-overhead client with no callbacks or
metrics. Use Client::builder(conn) to configure per-request callbacks,
kernel timestamps, and built-in histogram tracking.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(conn: ConnCtx) -> Self
pub fn new(conn: ConnCtx) -> Self
Create a new client wrapping an established connection.
No callbacks, no metrics, no kernel timestamps — zero overhead.
Sourcepub fn builder(conn: ConnCtx) -> ClientBuilder
pub fn builder(conn: ConnCtx) -> ClientBuilder
Create a builder for a client with per-request callbacks.
Sourcepub fn metrics(&self) -> Option<&ClientMetrics>
pub fn metrics(&self) -> Option<&ClientMetrics>
Returns a reference to the built-in metrics, if enabled.
Sourcepub fn metrics_mut(&mut self) -> Option<&mut ClientMetrics>
pub fn metrics_mut(&mut self) -> Option<&mut ClientMetrics>
Returns a mutable reference to the built-in metrics, if enabled.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more