Module conn

Source
Expand description

Middle-level API for RPC connections

This module focuses around the RpcConn type, which supports sending RPC requests and matching them with their responses.

Re-exports§

pub use builder::BuilderError;
pub use builder::ConnPtDescription;
pub use builder::RpcConnBuilder;
pub use connimpl::RpcConn;
pub use stream::StreamError;

Modules§

auth 🔒
Authentication for RpcConn.
builder 🔒
Functionality to connect to an RPC server.
connimpl 🔒
Implementation logic for RpcConn.
stream 🔒
Support for RPC-visible connections through Arti.

Structs§

ConnectFailure
A set of errors encountered while trying to connect to the Arti process
ConnectFailureVerboseFmt
Helper type to format a ConnectFailure along with all of its internal errors, including non-fatal errors.
EmptyReply 🔒
A reply with no data.
ErrorResponse
A Error Response from Arti, indicating that an error occurred.
NoParams 🔒
Arguments to a request that takes no parameters.
RequestHandle
A handle to an open request.
SuccessResponse
A Success Response from Arti, indicating that a request was successful.
UnexpectedReply
In response to a request that we generated internally, Arti gave a reply that we did not understand.
UpdateResponse
An Update Response from Arti, with information about the progress of a request.

Enums§

AnyResponse
Any of the three types of Arti responses.
ConnectError
An error while trying to connect to the Arti process.
ProtoError
An error that has occurred while launching an RPC command.
ShutdownError
An error (or other condition) that has caused an RPC connection to shut down.
UnexpectedReplyProblem 🔒
Underlying reason for an UnexpectedReply

Type Aliases§

FinalResponse 🔒
A final response – that is, the last one that we expect to receive for a request.