Struct bonsaidb_client::Builder
source · [−]Expand description
Builds a new Client with custom settings.
Implementations
Enables using a CustomApi with this client. If you want to receive
out-of-band API requests, set a callback using
with_custom_api_callback instead.
pub fn with_custom_api_callback<A: CustomApi, C: CustomApiCallback<A>>(
self,
callback: C
) -> Builder<A>
pub fn with_custom_api_callback<A: CustomApi, C: CustomApiCallback<A>>(
self,
callback: C
) -> Builder<A>
Enables using a CustomApi with this client. callback will be
invoked when custom API responses are received from the server.
Connects to a server using a pinned certificate. Only supported with BonsaiDb protocol-based connections.
Overrides the protocol version. Only for testing purposes.
Auto Trait Implementations
impl<A = ()> !RefUnwindSafe for Builder<A>
impl<A = ()> !UnwindSafe for Builder<A>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more