Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Backups/Archiving/BackupArchive+EmptyFrameId.swift
1 views
//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//

extension BackupArchive {
    /// An identifier for an empty ``BackupProto_Frame``.
    ///
    /// Uses a singleton pattern, as frames do not contain their own ID and
    /// consequently all empty frames are equivalent.
    struct EmptyFrameId: BackupArchive.LoggableId {
        static let shared = EmptyFrameId()

        private init() {}

        // MARK: BackupArchive.LoggableId

        var typeLogString: String { "BackupArchiveFrame" }
        var idLogString: String { "Empty" }
    }
}