Instance Method (Default implementation)swift-nio 2.81.0NIOCore
triggerUserOutboundEvent(context:event:promise:)
ChannelHandler.swift:264func triggerUserOutboundEvent(context: ChannelHandlerContext, event: Any, promise: EventLoopPromise<Void>?)
func triggerUserOutboundEvent(context: ChannelHandlerContext, event: Any, promise: EventLoopPromise<Void>?)
s7NIOCore23_ChannelOutboundHandlerPAAE011triggerUserC5Event7context5event7promiseyAA0bD7ContextC_ypAA0G11LoopPromiseVyytGSgtF
What are these?3D0I3
import NIOCore
The core abstractions that make up SwiftNIO.
protocol _ChannelOutboundHandler : ChannelHandler
Untyped ChannelHandler
which handles outbound I/O events or intercept an outbound I/O operation.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
struct EventLoopPromise<Value>
A promise to provide a result later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
func triggerUserOutboundEvent(context: ChannelHandlerContext, event: Any, promise: EventLoopPromise<Void>?)
Called when an user outbound event is triggered.
func bind(context: ChannelHandlerContext, to address: SocketAddress, promise: EventLoopPromise<Void>?)
func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?)
func connect(context: ChannelHandlerContext, to address: SocketAddress, promise: EventLoopPromise<Void>?)
func flush(context: ChannelHandlerContext)
func read(context: ChannelHandlerContext)
func register(context: ChannelHandlerContext, promise: EventLoopPromise<Void>?)
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)