unwrapAs(_:)

Unwraps the underlying ServiceDiscovery instance as ServiceDiscoveryImpl type.

ServiceDiscovery+TypeErased.swift:66
@discardableResult func unwrapAs<ServiceDiscoveryImpl>(_ serviceDiscoveryType: ServiceDiscoveryImpl.Type) throws -> ServiceDiscoveryImpl where ServiceDiscoveryImpl : ServiceDiscovery

Throws

TypeErasedServiceDiscoveryError.typeMismatch when the underlying ServiceDiscovery instance is not of type ServiceDiscoveryImpl.