Toolbox.Runtime.Stage.Unit (runbox v7.0.1)

Struct representing a unit.

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function

attributes(unit)

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

new(id, state, attributes)

@spec new(id :: binary(), state :: any(), attributes :: map()) :: t()
Link to this function

set_state(u, state)

@spec set_state(t(), state :: any()) :: t()
@spec state(t()) :: any()