RaftFleet.Manager.State.new
You're seeing just the function
new, go back to RaftFleet.Manager.State module for more information.
Specs
new(term()) :: Croma.Result.t(t())
Creates a new instance of RaftFleet.Manager.State by using the given dict.
Values associated with the struct field names are fetched from the given dict
and then validated/converted with valid?/1/new/1.
For missing fields default values (if any) are used.
Returns {:ok, valid_struct} when all fields are filled with valid values.
Returns {:error, reason} if any error occurs (invalid value or no value is available).
See also moduledoc of Croma.Struct.