Module Builder.PeerInfo

type struct_t = [
| `PeerInfo_ae7b97cc383b684e
]
val libp2p_port_get : t -> int
val libp2p_port_set_exn : t -> int -> unit
val has_host : t -> bool
val host_get : t -> string
val host_set : t -> string -> unit
val has_peer_id : t -> bool
val peer_id_get : t -> PeerId.t
val peer_id_set_reader : t -> PeerId.struct_t reader_t -> PeerId.t
val peer_id_set_builder : t -> PeerId.t -> PeerId.t
val peer_id_init : t -> PeerId.t
val of_message : Capnp.Message.rw message_t -> t
val to_message : t -> Capnp.Message.rw message_t
val to_reader : t -> struct_t reader_t
val init_root : ?message_size:int -> unit -> t
val init_pointer : pointer_t -> t