module Prop:sig
..end
Convenience interface for the
mailbox property interface (channel Tags_ARM_to_VC
).
type 'a
t =
| |
Unit : |
| |
Bytes : |
| |
Int32 : |
| |
Int64 : |
val unit : unit t
unit
is an empty property.val string : max:int -> string t
string
is a string of maximum length max
.val int : int t
int
is an integer property (parsed from an int32).val int32 : int32 t
int32
is an int32 property.val int64 : int64 t
int64
is an int64 property.val int_pair : (int * int) t
int
is an integer pair property (parsed from two int32s).val int32_pair : (int32 * int32) t
int32_pair
is an int32 pair property.val int64_pair : (int64 * int64) t
int32_pair
is an int64 pair property.typeargs =
int32 list
type 'a
req
type
ereq
val req : ?args:args ->
int32 -> resp:'a t -> 'a req
req t args resp
is a property for tag t
with request arguments
args
(defaults to []) and response property parsed with resp
.val r : 'a req -> ereq
r req
is an existential request for r
.type
resp
val send : ereq list -> resp Rpi.result
send reqs
sends the list of requests reqs
in the given order.val find : resp -> 'a req -> 'a option Rpi.result
find resp req
finds the property value of req
in response resp
.
None
is returned if the property can't be found.