SwiftstructMessage

struct NIOIMAPCore2.ResponseParser

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 8

  1. fieldlet bodySizeLimit: UInt64+0x30
  2. fieldlet bufferLimit: Int+0x20
  3. fieldvar lastResponseNewlineEnding: NIOIMAPCore2.ParseBuffer.Newline?+0x49
  4. fieldlet messageAttributeLimit: Int+0x28
  5. fieldvar mode: NIOIMAPCore2.ResponseParser.Mode+0x38
  6. fieldlet parser: NIOIMAPCore2.GrammarParser+0x0
  7. funcparseResponseStream(buffer: inout NIOIMAPCore2.ByteBuffer) throws -> NIOIMAPCore2.ResponseOrContinuationRequest?
  8. initinit(options: NIOIMAPCore2.ResponseParser.Options) -> NIOIMAPCore2.ResponseParser
struct ResponseParser {
    struct Options {
        var bufferLimit: Swift.Int
        var messageAttributeLimit: Swift.Int
        var bodySizeLimit: Swift.UInt64
        var literalSizeLimit: Swift.Int
        var parsedStringCache: (@Sendable (_: Swift.String) -> Swift.String)?

        init(bufferLimit: Swift.Int, messageAttributeLimit: Swift.Int, bodySizeLimit: Swift.UInt64, literalSizeLimit: Swift.Int, parsedStringCache: (@Sendable (_: Swift.String) -> Swift.String)?)
    }
    enum Mode {
        case response(NIOIMAPCore2.ResponseParser.ResponseState)
        case streamingQuoted(attributeCount: Swift.Int)
        case attributeBytes(Swift.Int, attributeCount: Swift.Int)
    }
    struct ResponseAndNewline {
        var response: NIOIMAPCore2.ResponseOrContinuationRequest
        var newline: NIOIMAPCore2.ParseBuffer.Newline?
    }
    // Local type in a function or closure the binary does not name
    enum _Response {
        case untaggedResponse(NIOIMAPCore2.ResponsePayload)
        case fetchResponse(NIOIMAPCore2.GrammarParser._FetchResponse)
    }
    enum ResponseState {
        case fetchMiddle(attributeCount: Swift.Int)
        case fetchOrNormal
    }
    let parser: NIOIMAPCore2.GrammarParser
    let bufferLimit: Swift.Int
    let messageAttributeLimit: Swift.Int
    let bodySizeLimit: Swift.UInt64
    var mode: NIOIMAPCore2.ResponseParser.Mode
    var lastResponseNewlineEnding: NIOIMAPCore2.ParseBuffer.Newline?

    init(options: NIOIMAPCore2.ResponseParser.Options)

    func parseResponseStream(buffer: inout NIOIMAPCore2.ByteBuffer) throws -> NIOIMAPCore2.ResponseOrContinuationRequest?
}