Runbox.Runtime.Stage.Unit (runbox v26.0.0)

View Source

Struct representing a unit.

Summary

Types

t()

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

Functions

attributes(unit)

@spec attributes(t()) :: map()

id(unit)

@spec id(t()) :: binary()

new(id, state, attributes)

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

set_state(u, state)

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

state(unit)

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