Structure

Record.Recording

A recorded sequence of outputs, followed by a completion value.

Declaration

struct Record<Output, Failure>.Recording

Topics

Type Aliases

typealias Record.Recording.Input

The type of values stored by the recording.

Initializers

init()

Creates an empty recording.

init(from: Decoder)

Creates a recording from the provided decoder.

init(output: [Output], completion: Subscribers.Completion<Failure>)

Creates a recording with the provided elements, followed by the provided completion value.

Instance Properties

var completion: Subscribers.Completion<Failure>

The completion value that represents the end of the recording.

var output: [Output]

A sequence of recorded output elements.

Instance Methods

func encode(into: Encoder)

Encodes this recording into the given recorder.

func encode(to: Encoder)

Encodes this recording into the given recorder.

func receive(completion: Subscribers.Completion<Failure>)

Add a completion value to the recording.

Relationships

Conforms To

  • Decodable
  • Encodable