[][src]Crate pegnetd

A json-rpc client for pegnetd

Re-exports

pub extern crate tokio;
pub use constants::*;
pub use requests::*;
pub use responses::*;
pub use api::*;

Modules

api

Holds the base client struct along with the api call functions

constants

Constants for use with the library

header

HTTP header types

requests

General request handling and the ApiRequest struct

responses

Contains the generic api response struct along with specific structs for each indiviual endpoint

Structs

Certificate

Represent a server X509 certificate.

Error

The Errors that may occur when processing a Request.

Identity

Represent a private key and X509 cert as a client certificate.

Method

The Request Method (VERB)

Proxy

Configuration of a proxy that a Client should pass requests to.

RedirectAction

An action to perform when a redirect status code is found.

RedirectAttempt

A type that holds information on the next request and previous requests in redirect chain.

RedirectPolicy

A type that controls the policy on how to handle the following of redirects.

Runtime

Handle to the Tokio runtime.

StatusCode

An HTTP status code (status-code in RFC 7230 et al.).

Url

A parsed URL record.

Version

Represents a version of the HTTP spec.

Traits

AsyncBufRead

Read bytes asynchronously.

AsyncRead

Read bytes asynchronously.

AsyncWrite

Writes bytes asynchronously.

Future

A future represents an asynchronous computation.

IntoUrl

A trait to try to convert some type into a Url.

Sink

A Sink is a value into which other values can be sent, asynchronously.

Stream

A stream of values produced asynchronously.

_

An extension trait for Future that provides a variety of convenient combinator functions.

_

An extension trait for Futures that provides a variety of convenient adapters.

_

An extension trait for Stream that provides a variety of convenient combinator functions.

_

An extension trait for Sinks that provides a variety of convenient combinator functions.

_

An extension trait for Streams that provides a variety of convenient combinator functions.

_

An extension trait which adds utility methods to AsyncBufRead types.

_

An extension trait which adds utility methods to AsyncRead types.

_

An extension trait which adds utility methods to AsyncWrite types.

Functions

get

Shortcut method to quickly make a GET request.

Type Definitions

Result

A Result alias where the Err case is reqwest::Error.