Module stellar_client::client::sync[][src]

This module contains the client for synchronous communcation. A synchronous client is one that will block the calling thread until a response has been returned. It requires that the caller passes it a struct that implements the IntoRequest trait.

There are a few convenience functions for connecting to the horizon test and public net. However, most times, if you are running in production, you'll specify your own horizon server url.

use stellar_client::sync::Client;

let client = Client::new("https://horizon-testnet.stellar.org").unwrap();

Structs

Client

A client that can issue requests to a horizon api in a synchronous fashion, meaning that the functions will block until the response has been formed. The overall performance of this is slightly slower than using async but will generally be simpler to implement.

Iter

An iterator for records. Provides the ability to use the iterator in rust against records that are returned from the api.