mirror of
https://github.com/Cocoanetics/SwiftMail.git
synced 2026-03-17 20:02:25 +00:00
18 lines
488 B
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>)
|
|
}
|