Expand description
RPC connection implementation
Cautions
- All
write
operation are not cancellation-safe in async context. Once you abort the async write task such asrequest
,notify
,response*
series, the write stream may remain in corrupted state, which may invalidate any subsequent write operation.
Modules
Structs
- Placeholder implementation of event listener.
- RPC request context. Stores request ID and response receiver context.
- When dropped, the response handler will be unregistered from the queue.
- Send-only handle. This holds strong reference to the connection.
- Bidirectional RPC handle. It can serve as both client and server.
- Reused buffer over multiple RPC request/responses
Enums
Traits
- Trick to get the request context from the generic type, and to cast [
ConnectionBody
] todyn
[Connection
] trait object. - This trait is to notify the event from the connection.