majic/lib/majic/server/status.ex
Jordan Bracco b5777bf9e8 Majic.
2020-06-15 22:23:14 +02:00

21 lines
485 B
Elixir

defmodule Majic.Server.Status do
@moduledoc """
Represents Status of the underlying Server.
"""
@typedoc """
Represnets Staus of the Server.
- `:state`: Represents the current state of the Server
- `:cycles`: Represents the number of cycles the Server has run; note that this resets if
recycling is enabled.
"""
@type t :: %__MODULE__{
state: Majic.Server.state(),
cycles: non_neg_integer()
}
defstruct state: nil, cycles: 0
end