DoubleDown.Contract.Dispatch.HandlerMeta.Stateless (double_down v0.55.0)

Copy Markdown View Source

Handler meta for a stateless 3-arity function handler (contract, operation, args).

Summary

Functions

Create a new Stateless handler meta. Validates that fun is a 3-arity function.

Types

t()

@type t() :: %DoubleDown.Contract.Dispatch.HandlerMeta.Stateless{
  fun: DoubleDown.Contract.Dispatch.Types.stateless_fun()
}

Functions

new(fun)

Create a new Stateless handler meta. Validates that fun is a 3-arity function.