unwrapOutboundIn(_:)
TypeAssistedChannelHandler.swift:102static func unwrapOutboundIn(_ value: NIOAny) -> Self.OutboundIn
static func unwrapOutboundIn(_ value: NIOAny) -> Self.OutboundIn
s7NIOCore22ChannelOutboundHandlerPAAE06unwrapC2Iny0cF0QzAA6NIOAnyVFZ
What are these?20SU8
import NIOCore
The core abstractions that make up SwiftNIO.
protocol ChannelOutboundHandler : _ChannelOutboundHandler, _EmittingChannelHandler
ChannelHandler
which handles outbound I/O events or intercept an outbound I/O operation for a Channel
.
struct NIOAny
NIOAny
is an opaque container for values of any type, similar to Swift’s builtin Any
type. Contrary to Any
the overhead of NIOAny
depends on the the type of the wrapped value. Certain types that are important for the performance of a SwiftNIO application like ByteBuffer
, FileRegion
and AddressEnvelope<ByteBuffer>
can be expected to be wrapped almost without overhead. All others will have similar performance as if they were passed as an Any
as NIOAny
just like Any
will contain them within an existential container.
associatedtype OutboundIn
The type of the outbound data which is wrapped in NIOAny
.
func unwrapOutboundIn(_ value: NIOAny) -> Self.OutboundIn
Unwrap the provided NIOAny
that was passed to write
.
func unwrapOutboundIn(_ value: NIOAny) -> Self.OutboundIn