Contents

init(receiving:sending:using:_:)

Create a Coder protocol.

Declaration

init<BelowProtocol>(receiving: Receiving.Type, sending: Sending.Type, using: CoderType, @ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : StreamProtocol

Parameters

  • receiving:

    The Codable type that will be received.

  • sending:

    The Codable type that will be sent.

  • using:

    The NetworkCoder that will be used to encode and decode.

  • builder:

    The protocol stack below Coder.