NotifyMask
Service status changes to observe.
Passed to
Service.wait_for_status_change,
which also accepts a bare symbol or an iterable of symbols in its place.
Example
Inherits from: Iterable[NotifyChange]
Constructor
NotifyMask ...flags -> NotifyMask overload 1 of 2
Constructs a flag set from symbols.
Parameters
| Name | Type | Description |
|---|---|---|
...flags |
NotifyChange |
NotifyMask flags -> NotifyMask overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
flags |
Iterable[NotifyChange] |
Class Methods
from_int value -> NotifyMask
Builds a mask from a native integer, preserving every bit including ones this type does not name.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Int |
Native notification mask. |
Fields
Methods
(band)[S @ NotifyMask] other -> S
Returns the flags set in both.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bnot)[S @ NotifyMask]() -> S
Returns the flags of the type that are not set.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
(bor)[S @ NotifyMask] other -> S
Returns the flags set in either.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bxor)[S @ NotifyMask] 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 |
NotifyChange |