Module Proto.Rwalk
An Rwalk message responds with the Qid for each traversed element. If no elements were successfully traversed, a server should reply with an Rerror
message. Otherwise, the Rwalk message should contain a Qid entry for each path element that was successfully traversed.
val fold_left : f:('a -> Styx__.Types.Qid.t -> 'a) -> init:'a -> t -> 'a
fold_left ~f
callsf
on successive elements of the elements in the Rwalk'swqid
field.
val nwqid : t -> int
nwqid rwalk
is the number of qids in the rwalk.
val alloc : Iovec.ring -> nwqid:int -> t
alloc iov ~tag ~nwqid
allocates memory for an Rwalk of up tonwqid
elements. The initial message has zero elements. Additional elements can be added withadd
.
val add : t -> Styx__.Types.Qid.t
incr rwalk
extends the Rwalk request by the length of one qid. The qid's contents are initialized to 0.