Structure

DispatchIO.CloseFlags

The semantics of closing an I/O channel.

Declaration

struct CloseFlags

Topics

Initializers

init()

Creates an empty option set.

init<S>(S)

Creates a new set from a finite sequence of items.

init(arrayLiteral: DispatchIO.CloseFlags...)

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

Instance Properties

var isEmpty: Bool

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

Type Properties

static let stop: DispatchIO.CloseFlags

Specifies that a channel should stop any active read/write operations when closed.

Instance Methods

func contains(DispatchIO.CloseFlags) -> Bool

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

func formIntersection(DispatchIO.CloseFlags)

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

func formSymmetricDifference(DispatchIO.CloseFlags)

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.CloseFlags)

Inserts the elements of another set into this option set.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Removes the given element and all elements subsumed by it.

func subtract(DispatchIO.CloseFlags)

Removes the elements of the given set from this set.

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

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

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

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

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

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

Operator Functions

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

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

Relationships

See Also

Managing Dispatch I/O

class DispatchIO

DispatchIO provides a channel to perform operations on file descriptor using either stream-based and random-access semantics for accessing the contents of a file descriptor.

enum DispatchIO.StreamType

The semantics for accessing the contents of a file descriptor.

Dispatch I/O Channel Types

The types of dispatch I/O channels that may be created.

Dispatch I/O Channel Closing Options

The options to use when closing a dispatch I/O channel.

Dispatch I/O Channel Configuration Options

The options to use when configuring a channel.