Protocol_9p.ResponseParsers and printers for 9P response messages
module Version : sig ... endmodule Auth : sig ... endmodule Err : sig ... endmodule Flush : sig ... endmodule Attach : sig ... endmodule Walk : sig ... endmodule Open : sig ... endmodule Create : sig ... endmodule Read : sig ... endmodule Write : sig ... endmodule Clunk : sig ... endmodule Remove : sig ... endmodule Stat : sig ... endmodule Wstat : sig ... endval sexp_of_payload : payload -> Sexplib0.Sexp.tval payload_of_sexp : Sexplib0.Sexp.t -> payloadtype t = {tag : Protocol_9p__.Protocol_9p_types.Tag.t;The tag used to match this response with the original request
*)payload : payload;}A 9P protocol response
val sizeof : t -> intThe size of a buffer needed to hold t
val read : Cstruct.t -> (t * Cstruct.t, [ `Msg of string ]) Stdlib.resultRead a t from the given buffer and return it, along with the unused remainder of the buffer. If the buffer cannot be parsed then return an error.
val write : t -> Cstruct.t -> (Cstruct.t, [ `Msg of string ]) Stdlib.resultWrite a t into the given buffer. If the buffer is too small, then return an error. Return the unused remainder of the buffer.
val pp : t Fmt.tpp pretty-prints responses.
val error :
?errno:int32 ->
('a, unit, string, (_, Err.t) Stdlib.result) Stdlib.format4 ->
'a