Structure

DispatchIO.IntervalFlags

No overview available.

Declaration

struct IntervalFlags

Topics

Interval Flags

static let strictInterval: DispatchIO.IntervalFlags

Enqueue handlers for a channel at strict intervals regardless of how much data has been read or written.

Initializers

init()

Creates an empty option set.

init(arrayLiteral: DispatchIO.IntervalFlags...)

Creates a set containing the elements of the given array literal.

init<S>(S)

Creates a new set from a finite sequence of items.

Instance Properties

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

Instance Methods

func contains(DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

func formIntersection(DispatchIO.IntervalFlags)

Removes all elements of this option set that are not also present in the given set.

func formSymmetricDifference(DispatchIO.IntervalFlags)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

func formUnion(DispatchIO.IntervalFlags)

Inserts the elements of another set into this option set.

func insert(DispatchIO.IntervalFlags) -> (inserted: Bool, memberAfterInsert: DispatchIO.IntervalFlags)

Adds the given element to the option set if it is not already a member.

func intersection(DispatchIO.IntervalFlags) -> DispatchIO.IntervalFlags

Returns a new option set with only the elements contained in both this set and the given set.

func isDisjoint(with: DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func remove(DispatchIO.IntervalFlags) -> DispatchIO.IntervalFlags?

Removes the given element and all elements subsumed by it.

func subtract(DispatchIO.IntervalFlags)

Removes the elements of the given set from this set.

func subtracting(DispatchIO.IntervalFlags) -> DispatchIO.IntervalFlags

Returns a new set containing the elements of this set that do not occur in the given set.

func symmetricDifference(DispatchIO.IntervalFlags) -> DispatchIO.IntervalFlags

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func union(DispatchIO.IntervalFlags) -> DispatchIO.IntervalFlags

Returns a new option set of the elements contained in this set, in the given set, or in both.

Operator Functions

static func != (DispatchIO.IntervalFlags, DispatchIO.IntervalFlags) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Relationships

See Also

Managing the File Descriptor

var fileDescriptor: Int32

Returns the file descriptor associated with the specified channel.

func setLimit(highWater: Int)

Sets the maximum number of bytes to process before enqueueing a handler block.

func setLimit(lowWater: Int)

Sets the minimum number of bytes to process before enqueueing a handler block.

func setInterval(interval: DispatchTimeInterval, flags: DispatchIO.IntervalFlags)

Sets the interval, in nanoseconds, at which to invoke the I/O handlers for the channel.