blob: 37520fb3d511286763b16b6fe8c8c61ab7a95573 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// NEVPNStatus+Debug.swift
// MullvadVPN
//
// Created by pronebird on 28/11/2019.
// Copyright © 2019 Mullvad VPN AB. All rights reserved.
//
import Foundation
import NetworkExtension
extension NEVPNStatus: CustomStringConvertible {
public var description: String {
switch self {
case .connected:
return "connected"
case .connecting:
return "connecting"
case .disconnected:
return "disconnected"
case .disconnecting:
return "disconnecting"
case .invalid:
return "invalid"
case .reasserting:
return "reasserting"
@unknown default:
return "unknown value (\(rawValue))"
}
}
}
|