Expand description
RpcClient: connect, hello, call, ping, close.
The client owns one TCP connection to the server. It runs a single
background reader task that demultiplexes responses by Request.id
into per-call oneshot channels, so concurrent in-flight calls
on the same connection don’t block each other.
Auth is per-connection sticky per wire spec § 4: the first
frame on a connection MUST be HELLO; every subsequent call
inherits the auth state. The client tracks the authenticated /
admin flags from the HELLO response so callers can introspect
after the handshake.
Structs§
- Hello
Payload - HELLO request payload — sent as the FIRST frame on a connection.
- Hello
Response - What the server returns for a successful
HELLO. - RpcClient
- One connection to a Vectorizer RPC server.
Enums§
- RpcClient
Error - Errors the
RpcClientcan return.
Type Aliases§
- Result
- Result type alias.