Required Instance Methodswift-nio 2.84.0NIOCore
setOption(_:value:)
Set option
to value
on this Channel
.
func setOption<Option>(_ option: Option, value: Option.Value) throws where Option : ChannelOption
Set option
to value
on this Channel
.
func setOption<Option>(_ option: Option, value: Option.Value) throws where Option : ChannelOption
s7NIOCore28NIOSynchronousChannelOptionsP9setOption_5valueyqd___5ValueQyd__tKAA0cF0Rd__lF
What are these?1BBLJ
import NIOCore
The core abstractions that make up SwiftNIO.
protocol NIOSynchronousChannelOptions
associatedtype Value : Sendable
The type of the ChannelOption
’s value.
protocol ChannelOption : _NIOPreconcurrencySendable, Equatable
A configuration option that can be set on a Channel
to configure different behaviour.
func getOption<Option>(_ option: Option) throws -> Option.Value where Option : ChannelOption
Get the value of option
for this Channel
.