Files
SwiftMail/Sources/SwiftIMAP/Protocols/IMAPCommandHandler.swift

18 lines
488 B
Swift

// IMAPCommandHandler.swift
// Protocol for IMAP command handlers
import Foundation
import NIO
import Logging
/// Protocol for IMAP command handlers
public protocol IMAPCommandHandler: ChannelInboundHandler {
associatedtype ResultType
/// Initialize the handler
/// - Parameters:
/// - commandTag: The tag for the command (optional)
/// - promise: The promise to fulfill with the result
init(commandTag: String, promise: EventLoopPromise<ResultType>)
}