Structures

The following structures are available globally.

  • Thrown when a string cannot be created with the requested encoding

    See more

    Declaration

    Swift

    public struct InvalidString : Error
  • Thrown when a string cannot be encoded with the requested incoding

    See more

    Declaration

    Swift

    public struct StringEncodingError : Error
  • An error thrown by some forms of running caused when the exit code of the child process is non-zero

    See more

    Declaration

    Swift

    public struct ExitCodeFailure : Error, CustomStringConvertible
  • A simple wrapper around Int32

    See more

    Declaration

    Swift

    public struct FileDescriptor : RawRepresentable, ExpressibleByIntegerLiteral
    extension FileDescriptor: Hashable, Equatable, CustomStringConvertible
  • A wrapper to convert a FileHandle into a TextOutputStream

    See more

    Declaration

    Swift

    public struct FileHandleTextStream : TextOutputStream
  • A process spawned with something less nice than posix_spawn

    See more
  • A process spawned with posix_spawn

    See more

    Declaration

    Swift

    public struct PosixSpawn : ProcessSpawner
  • Thrown when changing directory fails. Could be because directory doesn’t exist, or permissions prevent it.

    Declaration

    Swift

    public struct ChangeDirectoryFailedError : Error