pub struct StoreClient { /* private fields */ }Expand description
Typed Rust client for Store.
Implementations§
Source§impl StoreClient
impl StoreClient
Sourcepub fn builder() -> StoreClientBuilder
pub fn builder() -> StoreClientBuilder
Start building a client with per-service base URLs.
pub fn new(url: &str) -> Self
pub fn with_retry_config(url: &str, retry_config: RetryConfig) -> Self
Sourcepub fn prefixed(&self, prefix: StoreKeyPrefix) -> PrefixedStoreClient
pub fn prefixed(&self, prefix: StoreKeyPrefix) -> PrefixedStoreClient
Pair this physical client with prefix, yielding the logical
PrefixedStoreClient that namespaces every operation.
Sourcepub fn connect_request_compression(&self) -> ConnectRequestCompression
pub fn connect_request_compression(&self) -> ConnectRequestCompression
Outgoing Connect request body compression (see ConnectRequestCompression).
pub fn decode_error_details( err: &ConnectError, ) -> Result<DecodedConnectError, DecodeError>
pub async fn health(&self) -> Result<bool, ClientError>
pub async fn ready(&self) -> Result<bool, ClientError>
Trait Implementations§
Source§impl Clone for StoreClient
impl Clone for StoreClient
Source§fn clone(&self) -> StoreClient
fn clone(&self) -> StoreClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for StoreClient
impl !RefUnwindSafe for StoreClient
impl !UnwindSafe for StoreClient
impl Send for StoreClient
impl Sync for StoreClient
impl Unpin for StoreClient
impl UnsafeUnpin for StoreClient
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