View Source Toolbox.Runtime.Stage.Unit (runbox v11.0.0)

Struct representing a unit.

Summary

Types

@type t() :: %Toolbox.Runtime.Stage.Unit{
  attributes: map(),
  id: binary(),
  state: any()
}

Functions

@spec attributes(t()) :: map()
@spec id(t()) :: binary()
Link to this function

new(id, state, attributes)

View Source
@spec new(id :: binary(), state :: any(), attributes :: map()) :: t()
@spec set_state(t(), state :: any()) :: t()
@spec state(t()) :: any()