Module Rpc.Implementation
A 'connection_state Implementation.t is something that knows how to respond to one query, given a 'connection_state. That is, you can create a 'connection_state
Implementation.t by providing a function which takes a query *and* a 'connection_state and provides a response.
The reason for this is that RPCs often do something like look something up in a master structure. This way, Implementation.ts can be created without having the master structure in your hands.
val description : _ t -> Description.tval lift : 'a t -> f:('b -> 'a) -> 'b tWe may want to use an
'a timplementation (perhaps provided by someone else) in a'b tcontext. We can do this as long as we can map our state into the state expected by the original implementer.