TransferResult

public enum TransferResult: CustomStringConvertible, CustomDebugStringConvertible

The return type for the tipTransmit functions.

  • The buffer contents has been completely transfered without error.

    Declaration

    Swift

    case ready
  • A timeout occured, status of the data transfer is uncertain.

    Declaration

    Swift

    case timeout
  • The connection was closed by the other side or a parallel thread.

    Declaration

    Swift

    case closed
  • The result when an error occured, the ‘message’ is a textual description of the error. This will usually be the string that corresponds to the ‘errno’ variable value.

    Declaration

    Swift

    case error(message: String)
  • The transfer is sheduled in a dispatch queue, the contained ID can be used to associate the transfer protocol methods with the transfer request.

    Declaration

    Swift

    case queued(id: Int)
  • The transfer has been started, the identifier is a unique identifier that references the transmission. The CustomStringConvertible protocol

    Declaration

    Swift

    public var description: String
  • The CustomDebugStringConvertible protocol

    Declaration

    Swift

    public var debugDescription: String