tunnelkit/TunnelKit/Sources/AppExtension/Transport/NWUDPSessionState+Descripti...

25 lines
598 B
Swift
Raw Normal View History

2018-08-23 08:19:25 +00:00
//
// NWUDPSessionState+Description.swift
// TunnelKit
2018-08-23 08:19:25 +00:00
//
// Created by Davide De Rosa on 9/24/17.
// Copyright © 2018 London Trust Media. All rights reserved.
//
import Foundation
import NetworkExtension
/// :nodoc:
extension NWUDPSessionState: CustomStringConvertible {
public var description: String {
switch self {
case .cancelled: return "cancelled"
case .failed: return "failed"
case .invalid: return "invalid"
case .preparing: return "preparing"
case .ready: return "ready"
case .waiting: return "waiting"
}
}
}