pub struct ClientBuilder { /* private fields */ }
Expand description

A client builder that can be used to fluently provide configuration settings used to construct the control interface client

Implementations§

Creates a new client builder

Sets the topic prefix for the NATS topic used for all control requests. Not to be confused with lattice ID/prefix

The lattice ID/prefix used for this client. If this function is not invoked, the prefix will be set to default

Sets the timeout for standard calls and RPC invocations used by the client. If not set, the default will be 2 seconds

Sets the timeout for auction (scatter/gather) operations. If not set, the default will be 5 seconds

Sets the JetStream domain for this client, which can be critical for locating the right key-value bucket for lattice metadata storage. If this is skipped, then the JS domain will be None

Completes the generation of a control interface client. This function is async because it will attempt to locate and attach to a metadata key-value bucket (LATTICEDATA_{prefix}) when starting. If this bucket is not discovered during build time, all subsequent client calls will operate in “legacy” mode against the deprecated control interface topics

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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
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