StructureDistributed5.9.0

    RemoteCallArgument

    Represents an argument passed to a distributed call target.

    iOS
    16.0+
    macOS
    13.0+
    tvOS
    16.0+
    watchOS
    9.0+
    struct RemoteCallArgument<Value>

    Citizens in Distributed

    Members

    • init(label: String?, name: String, value: Value)
    • var effectiveLabel: String

      The effective label of this argument, i.e. if no explicit label was set this defaults to the name. This reflects the semantics of call sites of function declarations without explicit label definitions in Swift.

    • let label: String?

      The “argument label” of the argument. The label is the name visible name used in external calls made to this target, e.g. for func hello(label name: String) it is label.

    • let name: String

      The internal name of parameter this argument is accessible as in the function body. It is not part of the functions API and may change without breaking the target identifier.

    • let value: Value

      The value of the argument being passed to the call. As RemoteCallArgument is always used in conjunction with recordArgument and populated by the compiler, this Value will generally conform to a distributed actor system’s SerializationRequirement.