Other Structures

The following structures are available globally.

  • A directory or file in the Ditto working directory. Directories can be traversed by accessing the childItems property. Files won’t have any children.

    See more

    Declaration

    Swift

    public struct DiskUsageItem
    extension DiskUsageItem: Equatable
    extension DiskUsageItem: Hashable
    extension DiskUsageItem: CustomStringConvertible
  • Represents a connection between two peers on the Ditto mesh network.

    See more

    Declaration

    Swift

    public struct DittoConnection
    extension DittoConnection: Identifiable
    extension DittoConnection: Equatable
    extension DittoConnection: Hashable
    extension DittoConnection: Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct DittoPeer
    extension DittoPeer: Equatable
    extension DittoPeer: Hashable
    extension DittoPeer: Codable
  • Represents the Ditto mesh network of peers and their connections between each other. The localPeer is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).

    See more

    Declaration

    Swift

    public struct DittoPresenceGraph
    extension DittoPresenceGraph: Equatable
    extension DittoPresenceGraph: Hashable
    extension DittoPresenceGraph: Codable