---
title: FSVolume.OpenModes
framework: fskit
role: symbol
role_heading: Structure
path: fskit/fsvolume/openmodes
---

# FSVolume.OpenModes

Defined modes for opening a file.

## Declaration

```swift
struct OpenModes
```

## Topics

### Declaring open modes

- [read](fskit/fsvolume/openmodes/read.md)
- [write](fskit/fsvolume/openmodes/write.md)

### Working with raw values

- [init(rawValue:)](fskit/fsvolume/openmodes/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Opening and closing

- [openItem(_:modes:context:replyHandler:)](fskit/fsvolume/openclosehandler/openitem(_:modes:context:replyhandler:).md)
- [closeItem(_:modes:context:replyHandler:)](fskit/fsvolume/openclosehandler/closeitem(_:modes:context:replyhandler:).md)
- [FSContext](fskit/fscontext.md)
