summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Extensions/NEVPNStatus+Debug.swift
blob: 9e1b50421c8aa32e0725ac23b014aef3a8a7913a (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
//
//  NEVPNStatus+Debug.swift
//  MullvadVPN
//
//  Created by pronebird on 28/11/2019.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import NetworkExtension

extension NEVPNStatus: Swift.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))"
        }
    }
}