SwiftstructJetCore
NativeIntentDispatcher
struct JetCore.NativeIntentDispatcher
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolJetCore.IntentDispatcher
Members 15
- field
let cache: Any+0x8 - field
var implementations: [String : JetCore.IntentImplementation]+0x0 - field
var next: JetCore.IntentDispatcher?+0x28 - func
dispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph) async throws -> A.ReturnType - func
dispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.IntentDispatchConfiguration<A>) async throws -> A.ReturnType - func
dispatch<A where A: JetCore.IntentModel>(_: A, objectGraph: JetCore.BaseObjectGraph, configuration: JetCore.DispatchConfiguration) async throws -> A.ReturnType - func
dispatcher<A, B where A == B.ReturnType, B: JetCore.IntentModel>(for: B, asPartOf: JetCore.BaseObjectGraph) async throws -> JetCore.IntentDispatcher - func
register(contentsOf: JetCore.NativeIntentDispatcher) -> () - func
register<A where A: JetCore.IntentImplementation>(A) -> () - func
registering(contentsOf: JetCore.NativeIntentDispatcher) -> JetCore.NativeIntentDispatcher - func
registering<A where A: JetCore.IntentImplementation>(A) -> JetCore.NativeIntentDispatcher - func
withNext(JetCore.IntentDispatcher?) -> JetCore.NativeIntentDispatcher - init
init(configuration: JetCore.NativeIntentDispatcher.Configuration) -> JetCore.NativeIntentDispatcher - init
init(implementations: () throws -> JetCore.NativeIntentDispatcher) throws -> JetCore.NativeIntentDispatcher - init
init() -> JetCore.NativeIntentDispatcher
Header
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 }