Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The interface of an Atacama Handler. It is worth noting that you don't have to explicitly implement this interface, which allows your modules to include _more_ than is specified here.
val pp_err : Format.formatter -> error -> unit
val handle_close : Connection.t -> state -> unit
val handle_connection : Connection.t -> state -> (state, error) handler_result
val handle_data :
Riot.Bytestring.t ->
Connection.t ->
state ->
(state, error) handler_result
val handle_error :
error ->
Connection.t ->
state ->
(state, error) handler_result
val handle_shutdown : Connection.t -> state -> (state, error) handler_result
val handle_timeout : Connection.t -> state -> (state, error) handler_result
val handle_message :
Riot.Message.t ->
Connection.t ->
state ->
(state, error) handler_result