aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Session.mli
blob: 442ab0e5e0fe37342fbed62b02a898fc1f0ba7e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
type state = {snapshot: Concepts.Hash.hash}
type t

class type implementation = object
  method state : state
  method pin : state -> unit
end

val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option
val state : t Handle.interface -> state
val pin : t Handle.interface -> state -> unit