WindowsServiceStatus enum

Windows 端 clash_sing_service 系统服务的可观测状态。

取值与 clash_sing_helper.exe status 的 stdout 一一对应; unsupported 表示当前平台非 Windows,不存在该服务概念。

Inheritance
Available extensions

Values

notInstalled → const WindowsServiceStatus

服务未安装

stopped → const WindowsServiceStatus

服务已安装但未运行

running → const WindowsServiceStatus

服务运行中

unknown → const WindowsServiceStatus

helper 返回 unknown,或 stdout 未识别

error → const WindowsServiceStatus

调用异常 / 超时 / helper.exe 缺失 / helper.json 生成失败

unsupported → const WindowsServiceStatus

当前平台不是 Windows

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromHelperOutput(String raw) WindowsServiceStatus
clash_sing_helper.exe status 的 stdout(调用方负责 trim)映射为枚举。 未识别值统一归为 unknown

Constants

values → const List<WindowsServiceStatus>
A constant List of the values in this enum, in order of their declaration.