Structureswift-nio 2.72.0NIOCore
TCPConvenienceOptions
A set of TCPConvenienceOption
s
struct TCPConvenienceOptions
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (21) members.
Types
struct Storage
A type-safe storage facility for
ChannelOption
s. You will only ever need this if you implement your ownChannel
that needs to storeChannelOption
s.struct TCPConvenienceOption
A TCP channel option which can be applied to a bootstrap using convenience notation.
enum Types
Type members
static let allocator: ChannelOptions.Types.AllocatorOption
static let allowRemoteHalfClosure: ChannelOptions.Types.AllowRemoteHalfClosureOption
static let autoRead: ChannelOptions.Types.AutoReadOption
static let backlog: ChannelOptions.Types.BacklogOption
static let connectTimeout: ChannelOptions.Types.ConnectTimeoutOption
static let datagramReceiveOffload: ChannelOptions.Types.DatagramReceiveOffload
static let datagramSegmentSize: ChannelOptions.Types.DatagramSegmentSize
static let datagramVectorReadMessageCount: ChannelOptions.Types.DatagramVectorReadMessageCountOption
static let explicitCongestionNotification: ChannelOptions.Types.ExplicitCongestionNotificationsOption
static let ipOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let maxMessagesPerRead: ChannelOptions.Types.MaxMessagesPerReadOption
static let receivePacketInfo: ChannelOptions.Types.ReceivePacketInfo
static let recvAllocator: ChannelOptions.Types.RecvAllocatorOption
static let socket: (SocketOptionLevel, SocketOptionName) -> ChannelOptions.Types.SocketOption
static let socketOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let tcpOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let writeBufferWaterMark: ChannelOptions.Types.WriteBufferWaterMarkOption
static let writeSpin: ChannelOptions.Types.WriteSpinOption
Citizens in NIOCore
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Type members
init(arrayLiteral: TCPConvenienceOption...
) Construct from an array literal.
Instance members
func consumeAllowLocalEndpointReuse(
) -> Types.ConvenienceOptionValue<Void> Caller is consuming the knowledge that
allowLocalEndpointReuse
was set or not. The setting will nolonger be set after this call.func consumeAllowRemoteHalfClosure(
) -> Types.ConvenienceOptionValue<Void> Caller is consuming the knowledge that allowRemoteHalfClosure was set or not. The setting will nolonger be set after this call.
func consumeDisableAutoRead(
) -> Types.ConvenienceOptionValue<Void> Caller is consuming the knowledge that disableAutoRead was set or not. The setting will nolonger be set after this call.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.