Crate pegnetd

Source
Expand description

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
io
Traits, helpers, and type definitions for asynchronous I/O functionality.
multipart
multipart/form-data
redirect
Redirect Handling
requests
General request handling and the ApiRequest struct
responses
Contains the generic api response struct along with specific structs for each indiviual endpoint

Structs§

Body
An asynchronous request body.
Certificate
Represents a server X509 certificate.
Client
An asynchronous Client to make Requests with.
ClientBuilder
A ClientBuilder can be used to create a Client with custom configuration.
Identity
Represents 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.
Request
A request which can be executed with Client::execute().
RequestBuilder
A builder to construct the properties of a Request.
Response
A Response to a submitted Request.
Runtime
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
Reads bytes asynchronously.
AsyncRead
Reads bytes from a source.
AsyncWrite
Writes bytes asynchronously.
IntoUrl
A trait to try to convert some type into a Url.
ResponseBuilderExt
Extension trait for http::response::Builder objects
_
An extension trait which adds utility methods to AsyncBufRead types.

Functions§

get
Shortcut method to quickly make a GET request.

Type Aliases§

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