Skip to content

IdleTimeoutValidator

[Source]

Validates that an idle timeout duration is within the allowed range.

The minimum value is 1 millisecond. The maximum value is 18,446,744,073,709 milliseconds (~213,503 days) — the largest value that can be converted to nanoseconds without overflowing U64.

Used by MakeIdleTimeout to construct IdleTimeout values.

primitive val IdleTimeoutValidator is
  Validator[U64 val] val

Implements


Constructors

create

[Source]

new val create()
: IdleTimeoutValidator val^

Returns


Public Functions

apply

[Source]

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

Parameters

  • value: U64 val

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns