blob: 9b06c3898712a58f634bd6b42473b6ee9b764c20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//
// QuantumResistanceSettings.swift
// MullvadSettings
//
// Created by Andrew Bulhak on 2024-02-08.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
public enum TunnelQuantumResistance: Codable, Sendable {
case automatic
case on
case off
}
public extension TunnelQuantumResistance {
/// A single source of truth for whether the current state counts as on
var isEnabled: Bool {
[.on, .automatic].contains(self)
}
}
|