NPRPC docs

struct ObjectActivationFlags

Swift

struct ObjectActivationFlags

Object activation flags controlling which transports an object is available on.

Combine them: [.tcp, .wss].

nprpc_swift/Sources/NPRPC/Poa.swift:19

Constructors

init(rawValue: UInt32)

Flags from their raw bits.

nprpc_swift/Sources/NPRPC/Poa.swift:24

Properties

static let allowAll: ObjectActivationFlags

Allow all transports

nprpc_swift/Sources/NPRPC/Poa.swift:56

static let http: ObjectActivationFlags

Allow HTTP connections

nprpc_swift/Sources/NPRPC/Poa.swift:41

static let https: ObjectActivationFlags

Allow secured HTTP connections

nprpc_swift/Sources/NPRPC/Poa.swift:44

static let networkOnly: ObjectActivationFlags

Network transports only (no shared memory)

nprpc_swift/Sources/NPRPC/Poa.swift:62

static let privateSession: ObjectActivationFlags

Make object session-specific (Ephemeral to current session)

nprpc_swift/Sources/NPRPC/Poa.swift:29

static let quic: ObjectActivationFlags

Allow QUIC connections

nprpc_swift/Sources/NPRPC/Poa.swift:53

let rawValue: UInt32

The IDL ObjectActivationFlags bits.

nprpc_swift/Sources/NPRPC/Poa.swift:21

static let shm: ObjectActivationFlags

Allow shared memory transport

nprpc_swift/Sources/NPRPC/Poa.swift:50

static let tcp: ObjectActivationFlags

Allow TCP connections

nprpc_swift/Sources/NPRPC/Poa.swift:32

static let ws: ObjectActivationFlags

Allow WebSocket connections

nprpc_swift/Sources/NPRPC/Poa.swift:35

static let wss: ObjectActivationFlags

Allow SSL WebSocket connections

nprpc_swift/Sources/NPRPC/Poa.swift:38

static let wt: ObjectActivationFlags

Allow WebTransport connections

nprpc_swift/Sources/NPRPC/Poa.swift:47