---
title: NSMachPort.Options
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsmachport/options
---

# NSMachPort.Options

Used to remove access rights to a mach port when the NSMachPort object is invalidated or destroyed.

## Declaration

```swift
struct Options
```

## Topics

### Constants

- [deallocateReceiveRight](foundation/nsmachport/options/deallocatereceiveright.md)
- [deallocateSendRight](foundation/nsmachport/options/deallocatesendright.md)

### Initializers

- [init(rawValue:)](foundation/nsmachport/options/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)
