Skip to content

ServiceControlsAccepted

Controls a running service accepts.

Reported by Status.controls_accepted; a service that does not accept a control ignores it.

Example

let status = service.query_status()
if status.controls_accepted.contains(:STOP:)
  service.control :STOP:

Inherits from: Iterable[AcceptedControl]

Implements: std.FlagSet[AcceptedControl]

Fields

int @ Int

The complete native value as an Int, including bits this type does not name.

Methods

from_int value -> ServiceControlsAccepted

Builds a value from a native integer, preserving every bit including ones this type does not name.

Parameters

NameTypeDescription
value Int Native controls-accepted mask.