pub struct ClientBuilder { /* private fields */ }Expand description
Builder for creating a Client with per-request callbacks and metrics.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn on_result<F: Fn(&CommandResult) + 'static>(self, f: F) -> Self
pub fn on_result<F: Fn(&CommandResult) + 'static>(self, f: F) -> Self
Register a callback invoked after each command completes.
Sourcepub fn with_metrics(self) -> Self
pub fn with_metrics(self) -> Self
Enable built-in histogram tracking (requires metrics feature).
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl !Send for ClientBuilder
impl !Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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