CommandValue

sealed interface CommandValue(source)

Typed command/query inputs shared by synchronous engines and session drivers. The command type determines which variant is meaningful. Binary and integer-list values own snapshots: modifying caller input or a returned copy cannot change a queued query.

Inheritors

Types

Link copied to clipboard
class Bytes(value: ByteArray) : CommandValue
Link copied to clipboard
data class Integer(val value: Int) : CommandValue
Link copied to clipboard
class Integers(value: List<Int>) : CommandValue
Link copied to clipboard
data object None : CommandValue
Link copied to clipboard
data class Text(val value: String) : CommandValue

Text can carry credentials; diagnostic output must not expose it.

Link copied to clipboard
data class Toggle(val value: Boolean) : CommandValue