View Source quicer_lib (quicer v0.0.303)

Summary

Types

-type action() :: hibernate | timeout() | {continue, Continue :: term()}.
-type cb_ret() :: cb_ret_noreply() | cb_ret_reply().
-type cb_ret_noreply() ::
    {ok, cb_state()} |
    {error, Reason :: term(), cb_state()} |
    {action(), cb_state()} |
    cb_ret_stop_noreply().
-type cb_ret_reply() ::
    {reply, Reply :: term(), cb_state()} |
    {reply, Reply :: term(), cb_state(), action()} |
    cb_ret_stop_reply().
-type cb_ret_stop_noreply() :: {stop, Reason :: term(), cb_state()}.
-type cb_ret_stop_reply() :: {stop, Reason :: term(), Reply :: term(), cb_state()}.
-type cb_state() :: term().
-type conf_handle() :: reference().
-type connection_handle() :: reference().
-type global_handle() :: quic_global.
-type listener_handle() :: reference().
-type reg_handle() :: reference().
-type stream_handle() :: reference().

Functions

Link to this function

default_cb_ret(_, State)

View Source
-spec default_cb_ret(cb_ret(), State :: term()) ->
                  {reply, NewState :: term()} |
                  {reply, NewState :: term(), action()} |
                  {noreply, NewState :: term()} |
                  {noreply, NewState :: term(), action()} |
                  {stop, Reason :: term(), Reply :: term(), NewState :: term()} |
                  {stop, Reason :: term(), NewState :: term()}.