SwiftstructJetCore

struct JetCore.Dependency

Members 17

  1. funcstatic satisfying<A where A: JetCore.Injectable>(_: A.Type, with: A) -> JetCore.Dependency
  2. funcstatic satisfying<A where A: AnyObject>(_: A.Type, with: A) -> JetCore.Dependency
  3. funcstatic satisfying<A>(_: A.Type, with: A) -> JetCore.Dependency
  4. fieldlet object: Any+0x8
  5. fieldlet type: Any.Type+0x0
  6. initinit<A where A: JetCore.AsyncOnlyAsDependency>(satisfying: A.Type, with: A) -> JetCore.Dependency
  7. initinit<A>(satisfying: A.Type, with: A) -> JetCore.Dependency
  8. initinit<A where A: Sendable>(_satisfying: A.Type, with: @Sendable () async throws -> A) -> JetCore.Dependency
  9. initinit<A>(_satisfying: A.Type, with: () -> A) -> JetCore.Dependency
  10. initinit<A where A: JetCore.SyncDependency>(satisfyingSync: A.Type, with: @Sendable () -> A) -> JetCore.Dependency
  11. initinit<A where A: JetCore.SyncThrowingDependency>(satisfyingSyncThrowing: A.Type, with: @Sendable () throws -> A) -> JetCore.Dependency
  12. initinit<A where A: JetCore.AsyncThrowingDependency, A: Sendable>(satisfyingAsyncThrowing: A.Type, with: @Sendable () async throws -> A) -> JetCore.Dependency
  13. initinit<A where A: JetCore.NoAsyncAsDependency, A: Sendable>(satisfying: A.Type, with: @Sendable () async throws -> A) -> JetCore.Dependency
  14. initinit<A where A: Sendable>(satisfying: A.Type, with: @Sendable () async throws -> A) -> JetCore.Dependency
  15. initinit<A where A: JetCore.AsyncOnlyAsDependency>(satisfying: A.Type, with: () -> A) -> JetCore.Dependency
  16. initinit<A>(satisfying: A.Type, with: () -> A) -> JetCore.Dependency
  17. varvar typeDescription: String { get }
struct Dependency {
    enum _Personality {
        case eagerSync
        case lazySync
        case lazyAsync
    }
    let type: any Any.Type
    let object: Any

    init<A>(satisfying: A.Type, with: A) where A: JetCore.AsyncOnlyAsDependency
    init<A>(satisfying: A.Type, with: A)
    init<A>(_satisfying: A.Type, with: @escaping @Sendable () async throws -> A) where A: Swift.Sendable
    init<A>(_satisfying: A.Type, with: @escaping () -> A)
    init<A>(satisfyingSync: A.Type, with: @escaping @Sendable () -> A) where A: JetCore.SyncDependency
    init<A>(satisfyingSyncThrowing: A.Type, with: @escaping @Sendable () throws -> A) where A: JetCore.SyncThrowingDependency
    init<A>(satisfyingAsyncThrowing: A.Type, with: @escaping @Sendable () async throws -> A) where A: JetCore.AsyncThrowingDependency, A: Swift.Sendable

    var typeDescription: Swift.String {
        get
    }

    static func satisfying<A>(_: A.Type, with: A) -> JetCore.Dependency where A: JetCore.Injectable
    static func satisfying<A>(_: A.Type, with: A) -> JetCore.Dependency where A: AnyObject
    static func satisfying<A>(_: A.Type, with: A) -> JetCore.Dependency
}