<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/Mach",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System4MachO"
  },
  "title" : "Mach"
}
-->

# Mach

```
@frozen enum Mach
```

## Topics

### Structures

[`struct Port`](/documentation/System/Mach/Port)

[`struct ReceiveRight`](/documentation/System/Mach/ReceiveRight)

The MachPortRight type used to manage a receive right.

[`struct SendOnceRight`](/documentation/System/Mach/SendOnceRight)

The MachPortRight type used to manage a send-once right.

[`struct SendRight`](/documentation/System/Mach/SendRight)

The MachPortRight type used to manage a send right.

### Enumerations

[`enum PortRightError`](/documentation/System/Mach/PortRightError)

Possible errors that can be thrown by Mach.Port operations.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)