Skip to content

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

let mask = NotifyMask :RUNNING: :STOPPED:

Inherits from: Iterable[NotifyChange]

Constructor

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

Constructs a flag set from symbols.

Parameters

NameTypeDescription
...flags NotifyChange

NotifyMask flags -> NotifyMask overload 2 of 2

Constructs a flag set from one iterable of symbols.

Parameters

NameTypeDescription
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

NameTypeDescription
value Int Native notification mask.

Fields

int @ Int [get]

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

Methods

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

Returns the flags set in both.

Parameters

NameTypeDescription
self S Receiver.
other S

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

Returns the flags of the type that are not set.

Parameters

NameTypeDescription
self S Receiver.

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

Returns the flags set in either.

Parameters

NameTypeDescription
self S Receiver.
other S

(bxor)[S @ NotifyMask] 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 NotifyChange