diff options
| -rw-r--r-- | src/rabbit_misc.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index ef949836c8..0522afdc8d 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -84,6 +84,12 @@ -type(optdef() :: {flag, string()} | {option, string(), any()}). -type(channel_or_connection_exit() :: rabbit_types:channel_exit() | rabbit_types:connection_exit()). +-type(digraph_label() :: term()). +-type(graph_vertex_fun() :: + fun ((atom(), [term()]) -> {digraph:vertex(), digraph_label()})). +-type(graph_edge_fun() :: + fun ((atom(), [term()]) -> {digraph:vertex(), digraph:vertex()})). +-type(graph_error_fun() :: fun ((any()) -> any() | no_return())). -spec(method_record_type/1 :: (rabbit_framing:amqp_method_record()) -> rabbit_framing:amqp_method_name()). @@ -185,11 +191,6 @@ -spec(get_options/2 :: ([optdef()], [string()]) -> {[string()], [{string(), any()}]}). -spec(all_module_attributes/1 :: (atom()) -> [{atom(), [term()]}]). --type(graph_vertex_fun() :: - fun ((atom(), [term()]) -> {digraph:vertex(), digraph:label()})). --type(graph_edge_fun() :: - fun ((atom(), [term()]) -> {digraph:vertex(), digraph:vertex()})). --type(graph_error_fun() :: fun ((any()) -> any() | no_return())). -spec(build_acyclic_graph/4 :: (graph_vertex_fun(), graph_edge_fun(), graph_error_fun(), [{atom(), [term()]}]) -> digraph()). |
