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
| Name | Type | Description |
|---|---|---|
...flags |
AcceptedControl |
ServiceControlsAccepted flags -> ServiceControlsAccepted overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
value |
Int |
Native controls-accepted mask. |
Fields
Methods
(band)[S @ ServiceControlsAccepted] other -> S
Returns the flags set in both.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bnot)[S @ ServiceControlsAccepted]() -> S
Returns the flags of the type that are not set.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
(bor)[S @ ServiceControlsAccepted] other -> S
Returns the flags set in either.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bxor)[S @ ServiceControlsAccepted] other -> S
Returns the flags set in exactly one.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
contains flag -> Bool
Tests whether all flags named by flag are set.
Parameters
| Name | Type | Description |
|---|---|---|
flag |
AcceptedControl |