---
title: DispatchIO.StreamType
framework: dispatch
role: symbol
role_heading: Enumeration
path: dispatch/dispatchio/streamtype
---

# DispatchIO.StreamType

The semantics for accessing the contents of a file descriptor.

## Declaration

```swift
enum StreamType
```

## Topics

### Stream Types

- [DispatchIO.StreamType.stream](dispatch/dispatchio/streamtype/stream.md)
- [DispatchIO.StreamType.random](dispatch/dispatchio/streamtype/random.md)

### Initializing the Type

- [DISPATCH_IO_RANDOM](dispatch/dispatch_io_random.md)
- [DISPATCH_IO_STREAM](dispatch/dispatch_io_stream.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a Dispatch I/O Object

- [init(type:fileDescriptor:queue:cleanupHandler:)](dispatch/dispatchio/init(type:filedescriptor:queue:cleanuphandler:).md)
- [init(type:path:oflag:mode:queue:cleanupHandler:)](dispatch/dispatchio/init(type:path:oflag:mode:queue:cleanuphandler:)-50rb0.md)
- [init(type:io:queue:cleanupHandler:)](dispatch/dispatchio/init(type:io:queue:cleanuphandler:).md)
