Skip to content

MaxSpawnValidator

[Source]

Validates that a max spawn value is at least 1.

A limit of 0 is nonsensical — it would prevent any connections from being accepted. Used by MakeMaxSpawn to construct MaxSpawn values.

primitive val MaxSpawnValidator is
  Validator[U32 val] val

Implements


Constructors

create

[Source]

new val create()
: MaxSpawnValidator val^

Returns


Public Functions

apply

[Source]

fun box apply(
  value: U32 val)
: (ValidationSuccess val | ValidationFailure val)

Parameters

  • value: U32 val

Returns


eq

[Source]

fun box eq(
  that: MaxSpawnValidator val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: MaxSpawnValidator val)
: Bool val

Parameters

Returns