WireContextMap

Coroutine-context element that carries wire-encoded @KsContext values through the call chain. The stub-side com.monkopedia.ksrpc.RpcMethod.callChannel builds a WireContextMap from the caller's coroutine context (encoding each present com.monkopedia.ksrpc.KsContextBinding via toWire) and installs it so transports can read the values and propagate them across the wire.

On the server side, the transport installs a WireContextMap extracted from the incoming wire frame. com.monkopedia.ksrpc.RpcMethod.call then decodes each entry via fromWire and installs real CoroutineContext.Elements so handlers see them via the standard coroutineContext[MyElement] lookup.

This class is transport plumbing and not part of the public API.

Constructors

Link copied to clipboard
constructor(values: Map<String, String>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val key: CoroutineContext.Key<*>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext