File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Sources/GRPCCore/Call/Server Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
/// Additional information about an RPC handled by a server.
18
18
public struct ServerContext : Sendable {
19
+
20
+ /// Protocol used to help identify transport specific context fields
21
+ public protocol TransportSpecific : Sendable { }
22
+
19
23
/// A description of the method being called.
20
24
public var descriptor : MethodDescriptor
21
25
@@ -52,7 +56,7 @@ public struct ServerContext: Sendable {
52
56
///
53
57
/// An example of what this field can be used for, would be to store
54
58
/// things like a peer certificate from a mTLS connection
55
- public var transportSpecific : ( any Sendable ) ?
59
+ public var transportSpecific : ( any TransportSpecific ) ?
56
60
57
61
/// A handle for checking the cancellation status of an RPC.
58
62
public var cancellation : RPCCancellationHandle
You can’t perform that action at this time.
0 commit comments