TCPConvenienceOptions

public struct TCPConvenienceOptions : ExpressibleByArrayLiteral, Hashable

A set of TCPConvenienceOptions

  • Construct from an array literal.

    Declaration

    Swift

    @inlinable
    public init(arrayLiteral elements: TCPConvenienceOption...)
  • Caller is consuming the knowledge that allowLocalEndpointReuse was set or not. The setting will nolonger be set after this call.

    Declaration

    Swift

    public mutating func consumeAllowLocalEndpointReuse() -> Types.ConvenienceOptionValue<Void>

    Return Value

    If allowLocalEndpointReuse was set.

  • Caller is consuming the knowledge that disableAutoRead was set or not. The setting will nolonger be set after this call.

    Declaration

    Swift

    public mutating func consumeDisableAutoRead() -> Types.ConvenienceOptionValue<Void>

    Return Value

    If disableAutoRead was set.

  • Caller is consuming the knowledge that allowRemoteHalfClosure was set or not. The setting will nolonger be set after this call.

    Declaration

    Swift

    public mutating func consumeAllowRemoteHalfClosure() -> Types.ConvenienceOptionValue<Void>

    Return Value

    If allowRemoteHalfClosure was set.