Enumerationswift-nio 2.81.0NIOCore
IdleStateEvent
A user event triggered by IdleStateHandler when a Channel is idle.
enum IdleStateEvent
A user event triggered by IdleStateHandler when a Channel is idle.
enum IdleStateEvent
import NIOCore
The core abstractions that make up SwiftNIO.
final class IdleStateHandler
Triggers an IdleStateEvent when a Channel has not performed read, write, or both operation for a while.
case write
Will be triggered when no write was performed for the specified amount of time
case read
Will be triggered when no read was performed for the specified amount of time
case all
Will be triggered when neither read nor write was performed for the specified amount of time
init(readTimeout: TimeAmount? = nil, writeTimeout: TimeAmount? = nil, allTimeout: TimeAmount? = nil)
let allTimeout: TimeAmount?
let readTimeout: TimeAmount?
let writeTimeout: TimeAmount?
func channelActive(context: ChannelHandlerContext)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func channelReadComplete(context: ChannelHandlerContext)
func handlerAdded(context: ChannelHandlerContext)
func handlerRemoved(context: ChannelHandlerContext)
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)
typealias InboundIn = NIOAny
typealias InboundOut = NIOAny
typealias OutboundIn = NIOAny
typealias OutboundOut = NIOAny
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.