Current section
Files
Jump to
Current section
Files
lib/retort/server/generic/callback.ex
defmodule Retort.Server.Generic.Callback do
@moduledoc """
Tracks data about implementation of `Retort.Server.Generic` behaviour.
"""
# Struct
defstruct ~w(module state)a
# Types
@typedoc """
* `module` - implements `Retort.Server.Generic` behavior
* `state` - state for `module`, *NOT* the state for `Retort.Server.Generic` process, although
`module` is free to include parts or a copy of `Retort.Server.Generic.t` if it wants.
"""
@type t :: %__MODULE__{
module: module,
state: any
}
end