jetstream 16.0.0

Jetstream is a RPC framework for Rust, based on the 9P protocol and QUIC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// JetStream RPC — Context
// Copyright (c) 2024, Sevki <s@sevki.io>
// SPDX-License-Identifier: BSD-3-Clause

// r[impl jetstream.rpc.swift.context]

import Foundation

/// RPC call context.
public struct Context: Sendable {
    public var remoteAddress: String?

    public init(remoteAddress: String? = nil) {
        self.remoteAddress = remoteAddress
    }

    public static let `default` = Context()
}