SwiftfuncCryptexServerCryptexServer.Server

register

CryptexServer.Server.register<A where A: CryptexKit.Request>(_: A.Type, handler: @Sendable (__owned A) async throws -> sending A.ResponseType) -> ()

Structure

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

generic{}

A

req{}

param{}

  1. 0_
    metatypeA.Type
    • basegenericParameterA
  2. 1handler:
    function@Sendable (__owned A) async throws -> sending A.ResponseTypesendableescapingasyncthrows
    • paramgenericParameterAconsuming
    • returnsassociatedTypeResponseType
      • basegenericParameterA