Protocols

The following protocols are available globally.

  • Any type that can (and typically must) be closed.

    See more

    Declaration

    Swift

    public protocol Closable
  • Any resource that can be represented with a file descriptor. A file descriptor is also Closable.

    See more

    Declaration

    Swift

    public protocol FileDescriptor: Closable