init()

in Sources/DistributedActors/Cluster/Protobuf/Membership+Serialization.swift [118:135]


    init(fromProto proto: _ProtoClusterMemberStatus, context: Serialization.Context) throws {
        switch proto {
        case .unspecified:
            throw SerializationError.missingField("status", type: "\(_ProtoClusterMemberStatus.self)")
        case .UNRECOGNIZED(let n):
            throw SerializationError.missingField("status:\(n)", type: "\(_ProtoClusterMemberStatus.self)")
        case .joining:
            self = .joining
        case .up:
            self = .up
        case .leaving:
            self = .leaving
        case .down:
            self = .down
        case .removed:
            self = .removed
        }
    }