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

A ClientBuilder is used to generated a customized Client.

Implementations

Creates a new ClientBuilder.

Sets the IOTA Tangle network.

Sets the DID message encoding used when publishing to the Tangle.

When publishing to the Tangle, sets whether to retry until the message is confirmed by a milestone. Default: true.

Adds an IOTA node by its URL.

Adds an IOTA node by its URL to be used as primary node.

Adds an IOTA node by its URL to be used as primary PoW node (for remote PoW).

Adds a permanode by its URL.

Adds an IOTA node by its URL.

Adds a list of IOTA nodes by their URLs.

Sets the node sync interval.

Disables the node sync process.

Get node list from the urls.

Enables/disables quorum.

Sets the number of nodes used for quorum.

Sets the quorum threshold.

Sets whether proof-of-work (PoW) is performed locally or remotely.

Default: false.

Sets whether the PoW should be done locally in case a node doesn’t support remote PoW.

Default: true.

Sets the number of seconds that new tips will be requested during PoW.

Sets the default request timeout.

Creates a new Client based on the ClientBuilder configuration.

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.

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