Instance Methodswift-service-discovery 1.4.0ServiceDiscovery
unwrapAs(_:)
Unwraps the underlying ServiceDiscovery
instance as ServiceDiscoveryImpl
type.
@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
.