Name
The name of a method to which the method config applies.
struct Name
The name of a method to which the method config applies.
struct Name
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct MethodConfig
Configuration values for executing an RPC.
init(from decoder: any Decoder) throws
init(names: [Name], waitForReady: Bool? = nil, timeout: Duration? = nil, maxRequestMessageBytes: Int? = nil, maxResponseMessageBytes: Int? = nil, executionPolicy: RPCExecutionPolicy? = nil)
Create an execution configuration.
var executionPolicy: RPCExecutionPolicy?
The policy determining how many times, and when, the RPC is executed.
var maxRequestMessageBytes: Int?
The maximum allowed payload size in bytes for an individual message.
var maxResponseMessageBytes: Int?
The maximum allowed payload size in bytes for an individual response message.
var names: [Name]
The names of methods which this configuration applies to.
var timeout: Duration?
The default timeout for the RPC.
var waitForReady: Bool?
Whether RPCs for this method should wait until the connection is ready.
func encode(to encoder: any Encoder) throws
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(from decoder: any Decoder) throws
init(service: String, method: String = "")
Create a new name.
var method: String
The name of the method.
var service: String { get set }
The name of the service, including the namespace.
func encode(to encoder: any Encoder) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.