Module rincon_core::api::connector
[−]
[src]
Definition of Connector and Connection.
The rincon driver uses a connector that implements the communication layer to the ArangoDB server. It defines the transport protocol like HTTP or HTTPS and the format for serializing the payload of requests and responses, like JSON for example.
A connector establishes connections to a server. A connection is used to actually execute a method call.
A connector is defined to implement the Connector
trait. A connection as
established and provided by a Connector
is of type Connector::Connection
The Connection
type is bound to implement the Execute
trait.
Depending on the implementation of a connector it can be simply a factory for connections or be more advanced by maintaining a pool of connections.
Implementations of a connection know how to serialize and send method calls to the server and deserialize the responses into the defined result type.
Enums
Error |
The type of error that can occur during communication with the server. |
Traits
Connector |
A connector establishes and provides connections to a server. |
Execute |
A type that can execute method calls. |
Type Definitions
FutureResult |
The result of any asynchronous method call |