View Source Runbox.Runtime.Stage.Unit (runbox v13.0.3)

Struct representing a unit.

Summary

Types

@type t() :: %Runbox.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()