SwiftstructJetCore

struct JetCore.NativeIntentDispatcher

Structure

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

inherits{}

Members 15

  1. fieldlet cache: Any+0x8
  2. fieldvar implementations: [String : JetCore.IntentImplementation]+0x0
  3. fieldvar next: JetCore.IntentDispatcher?+0x28
  4. funcdispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph) async throws -> A.ReturnType
  5. funcdispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.IntentDispatchConfiguration<A>) async throws -> A.ReturnType
  6. funcdispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.DispatchConfiguration) async throws -> A.ReturnType
  7. funcdispatcher<A, B where A == B.ReturnType, B: JetCore.IntentModel>(for: B, asPartOf: JetCore.BaseObjectGraph) async throws -> JetCore.IntentDispatcher
  8. funcregister(contentsOf: JetCore.NativeIntentDispatcher) -> ()
  9. funcregister<A where A: JetCore.IntentImplementation>(A) -> ()
  10. funcregistering(contentsOf: JetCore.NativeIntentDispatcher) -> JetCore.NativeIntentDispatcher
  11. funcregistering<A where A: JetCore.IntentImplementation>(A) -> JetCore.NativeIntentDispatcher
  12. funcwithNext(JetCore.IntentDispatcher?) -> JetCore.NativeIntentDispatcher
  13. initinit(configuration: JetCore.NativeIntentDispatcher.Configuration) -> JetCore.NativeIntentDispatcher
  14. initinit(implementations: () throws -> JetCore.NativeIntentDispatcher) throws -> JetCore.NativeIntentDispatcher
  15. initinit() -> JetCore.NativeIntentDispatcher
struct NativeIntentDispatcher {
    struct Configuration {
        let cache: any JetCore.IntentCache

        init(cache: (any JetCore.IntentCache)?)
    }
    @resultBuilder
    enum Builder {
        static func buildBlock(_: JetCore.NativeIntentDispatcher...) -> JetCore.NativeIntentDispatcher
        static func buildEither(first: JetCore.NativeIntentDispatcher) -> JetCore.NativeIntentDispatcher
        static func buildEither(second: JetCore.NativeIntentDispatcher) -> JetCore.NativeIntentDispatcher
        static func buildOptional(_: JetCore.NativeIntentDispatcher?) -> JetCore.NativeIntentDispatcher
        static func buildExpression<A>(_: A) -> JetCore.NativeIntentDispatcher where A: JetCore.IntentImplementation
    }
    var implementations: [Swift.String : any JetCore.IntentImplementation]
    let cache: Any
    var next: (any JetCore.IntentDispatcher)?

    init(configuration: JetCore.NativeIntentDispatcher.Configuration)
    init(implementations: () throws -> JetCore.NativeIntentDispatcher) throws
    init()

    func dispatcher<A, B>(for: B, asPartOf: JetCore.BaseObjectGraph) async throws -> any JetCore.IntentDispatcher where A == B.ReturnType, B: JetCore.IntentModel
    func registering(contentsOf: JetCore.NativeIntentDispatcher) -> JetCore.NativeIntentDispatcher
    func registering<A>(_: A) -> JetCore.NativeIntentDispatcher where A: JetCore.IntentImplementation
    func dispatch<A>(_: A, objectGraph: JetCore.BaseObjectGraph) async throws -> A.ReturnType where A: JetCore.IntentModel
    func dispatch<A>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.IntentDispatchConfiguration<A>) async throws -> A.ReturnType where A: JetCore.IntentModel
    func dispatch<A>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.DispatchConfiguration) async throws -> A.ReturnType where A: JetCore.IntentModel
    func register(contentsOf: JetCore.NativeIntentDispatcher)
    func register<A>(_: A) where A: JetCore.IntentImplementation
    func withNext(_: (any JetCore.IntentDispatcher)?) -> JetCore.NativeIntentDispatcher
}