Struct iota_client::builder::ClientBuilder[][src]

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

Builder to construct client instance with sensible default values

Implementations

Creates an IOTA client builder.

Adds an IOTA node by its URL.

Adds an IOTA node by its URL to be used as primary node, with optional jwt and or basic authentication

Adds an IOTA node by its URL to be used as primary PoW node (for remote PoW), with optional jwt and or basic authentication

Adds a permanode by its URL, with optional jwt and or basic authentication

Adds an IOTA node by its URL with optional jwt and or basic authentication

Adds a list of IOTA nodes by their URLs.

Set the node sync interval

Disables the node syncing process. Every node will be considered healthy and ready to use.

Allows creating the client without nodes for offline address generation or signing

Get node list from the node_pool_urls

Set if quroum should be used or not

Set amount of nodes which should be used for quorum

Set quorum_threshold

Selects the type of network to get default nodes for it, only “testnet” is supported at the moment. Nodes that don’t belong to this network are ignored. The &str must match a part or all of the networkId returned in the nodeinfo from a node. For example, if the networkId is "private-tangle", "tangle" can be used. Default nodes are only used when no other nodes are provided.

Sets whether the PoW should be done locally or remotely.

Sets after how many seconds new tips will be requested during PoW

Sets the default request timeout.

Sets the request timeout for a specific API usage.

Build the Client instance.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

Performs the conversion.

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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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