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]

Constructor

ServiceControlsAccepted ...flags -> ServiceControlsAccepted overload 1 of 2

Constructs a flag set from symbols.

Parameters

NameTypeDescription
...flags AcceptedControl

ServiceControlsAccepted flags -> ServiceControlsAccepted overload 2 of 2

Constructs a flag set from one iterable of symbols.

Parameters

NameTypeDescription
flags Iterable[AcceptedControl]

Class 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.

Fields

int @ Int [get]

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

Methods

(band)[S @ ServiceControlsAccepted] other -> S

Returns the flags set in both.

Parameters

NameTypeDescription
self S Receiver.
other S

(bnot)[S @ ServiceControlsAccepted]() -> S

Returns the flags of the type that are not set.

Parameters

NameTypeDescription
self S Receiver.

(bor)[S @ ServiceControlsAccepted] other -> S

Returns the flags set in either.

Parameters

NameTypeDescription
self S Receiver.
other S

(bxor)[S @ ServiceControlsAccepted] other -> S

Returns the flags set in exactly one.

Parameters

NameTypeDescription
self S Receiver.
other S

contains flag -> Bool

Tests whether all flags named by flag are set.

Parameters

NameTypeDescription
flag AcceptedControl