Mavryk_p2p.P2p_disconnection_reason
type t =
| Connection_lost of read_write
| Connection_closed_by_peer of read_write
| Connection_closed_by_unexpected_error of read_write * string
| TCP_connection_refused
| TCP_connection_unreachable
| TCP_connection_canceled
| TCP_connection_failed_unexpected_error of string
| Scheduled_pop_unexpected_error of Mavryk_base.TzPervasives.tztrace
| Scheduled_push_unexpected_error of Mavryk_base.TzPervasives.tztrace
| IO_scheduler_closed
| IO_scheduler_shutdown
| Accept_write_error of Mavryk_base.TzPervasives.tztrace
| Ack_read_error of Mavryk_base.TzPervasives.tztrace
| Authentication_rejected_no_common_protocol
| Authentication_rejected of Mavryk_base.TzPervasives.P2p_rejection.t
| Authentication_rejected_by_peer of Mavryk_base.TzPervasives.P2p_rejection.t
| Authentication_rejected_error of Mavryk_base.TzPervasives.tztrace
| Incoming_connection_too_many
| Incoming_connection_banned
| Unexpected_peer_id
| IP_manually_banned
| Peer_id_manually_banned
| Pool_destroyed
| Peer_swapped
| Explicit_RPC
| Maintenance_too_many
| User of string
| Unknown_reason
val encoding : t Mavryk_base.TzPervasives.Data_encoding.encoding
val pp : Stdlib.Format.formatter -> t -> unit