PeerType

public enum PeerType : UInt8, Encodable

Type of Peer Address

  • Public

    Declaration

    Swift

    case `public` = 0
  • Random Static

    Declaration

    Swift

    case randomStatic = 1
  • Random Private Resolvable

    Declaration

    Swift

    case randomPrivateResolvable = 2
  • Random Private Non-Resolvable

    Declaration

    Swift

    case randomPrivate = 3
  • Undocumented

    Declaration

    Swift

    case unknown = 255
  • Undocumented

    Declaration

    Swift

    public var description: String { get }
  • Encodes this value into the given encoder.

    If the value fails to encode anything, encoder will encode an empty keyed container in its place.

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.