Structure

Stream.Event

Describes the constants that may be sent to the delegate as a bit field in the second parameter of stream(_:handle:) to specify the kind of stream event.

Declaration

struct Event

Topics

Constants

static var openCompleted: Stream.Event

The open has completed successfully.

static var hasBytesAvailable: Stream.Event

The stream has bytes to be read.

static var hasSpaceAvailable: Stream.Event

The stream can accept bytes for writing.

static var errorOccurred: Stream.Event

An error has occurred on the stream.

static var endEncountered: Stream.Event

The end of the stream has been reached.

Relationships

Conforms To