File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public typealias ConnectTimeoutOption = ChannelOptions.Types.ConnectTimeoutOptio
64
64
public typealias AllowRemoteHalfClosureOption = ChannelOptions . Types . AllowRemoteHalfClosureOption
65
65
66
66
extension ChannelOptions {
67
- public enum Types {
67
+ public enum Types : Sendable {
68
68
69
69
/// `SocketOption` allows users to specify configuration settings that are directly applied to the underlying socket file descriptor.
70
70
///
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ protocol _SocketShutdownProtocol {
32
32
}
33
33
34
34
@usableFromInline
35
- internal enum Shutdown : _SocketShutdownProtocol {
35
+ internal enum Shutdown : _SocketShutdownProtocol , Sendable {
36
36
case RD
37
37
case WR
38
38
case RDWR
@@ -49,7 +49,7 @@ extension NIOBSDSocket {
49
49
extension NIOBSDSocket {
50
50
/// Specifies the type of socket.
51
51
@usableFromInline
52
- internal struct SocketType : RawRepresentable {
52
+ internal struct SocketType : RawRepresentable , Sendable {
53
53
public typealias RawValue = CInt
54
54
public var rawValue : RawValue
55
55
public init ( rawValue: RawValue ) {
@@ -144,7 +144,7 @@ extension NIOBSDSocket {
144
144
/// They aren't necessarily protocols in their own right: for example, ``mptcp``
145
145
/// is not. They act to modify the socket type instead: thus, ``mptcp`` acts
146
146
/// to modify `SOCK_STREAM` to ask for ``mptcp`` support.
147
- public struct ProtocolSubtype : RawRepresentable , Hashable {
147
+ public struct ProtocolSubtype : RawRepresentable , Hashable , Sendable {
148
148
public typealias RawValue = CInt
149
149
150
150
/// The underlying value of the protocol subtype.
Original file line number Diff line number Diff line change 16
16
17
17
/// A 24-bit unsigned integer value type.
18
18
@usableFromInline
19
- struct _UInt24 {
19
+ struct _UInt24 : Sendable {
20
20
@usableFromInline var _backing : ( UInt16 , UInt8 )
21
21
22
22
@inlinable
@@ -65,7 +65,7 @@ extension _UInt24: CustomStringConvertible {
65
65
// MARK: _UInt56
66
66
67
67
/// A 56-bit unsigned integer value type.
68
- struct _UInt56 {
68
+ struct _UInt56 : Sendable {
69
69
@usableFromInline var _backing : ( UInt32 , UInt16 , UInt8 )
70
70
71
71
@inlinable init ( _ value: UInt64 ) {
You can’t perform that action at this time.
0 commit comments