Public Member Functions | Public Attributes | List of all members
grpc_core::LoadBalancingPolicy::UpdateArgs Struct Reference

#include <lb_policy.h>

Public Member Functions

UpdateArgsoperator= (const UpdateArgs &other)
 
UpdateArgsoperator= (UpdateArgs &&other) noexcept
 
 UpdateArgs ()=default
 
 UpdateArgs (const UpdateArgs &other)
 
 UpdateArgs (UpdateArgs &&other) noexcept
 
 ~UpdateArgs ()
 

Public Attributes

absl::StatusOr< ServerAddressListaddresses
 
const grpc_channel_argsargs = nullptr
 
RefCountedPtr< Configconfig
 The LB policy config. More...
 
std::string resolution_note
 

Detailed Description

Data passed to the UpdateLocked() method when new addresses and config are available.

Definition at line 315 of file lb_policy.h.

Constructor & Destructor Documentation

◆ UpdateArgs() [1/3]

grpc_core::LoadBalancingPolicy::UpdateArgs::UpdateArgs ( )
default

◆ ~UpdateArgs()

grpc_core::LoadBalancingPolicy::UpdateArgs::~UpdateArgs ( )
inline

Definition at line 335 of file lb_policy.h.

◆ UpdateArgs() [2/3]

grpc_core::LoadBalancingPolicy::UpdateArgs::UpdateArgs ( const UpdateArgs other)

Definition at line 59 of file lb_policy.cc.

◆ UpdateArgs() [3/3]

grpc_core::LoadBalancingPolicy::UpdateArgs::UpdateArgs ( UpdateArgs &&  other)
noexcept

Definition at line 65 of file lb_policy.cc.

Member Function Documentation

◆ operator=() [1/2]

LoadBalancingPolicy::UpdateArgs & grpc_core::LoadBalancingPolicy::UpdateArgs::operator= ( const UpdateArgs other)

Definition at line 74 of file lb_policy.cc.

◆ operator=() [2/2]

LoadBalancingPolicy::UpdateArgs & grpc_core::LoadBalancingPolicy::UpdateArgs::operator= ( UpdateArgs &&  other)
noexcept

Definition at line 85 of file lb_policy.cc.

Member Data Documentation

◆ addresses

absl::StatusOr<ServerAddressList> grpc_core::LoadBalancingPolicy::UpdateArgs::addresses

A list of addresses, or an error indicating a failure to obtain the list of addresses.

Definition at line 318 of file lb_policy.h.

◆ args

const grpc_channel_args* grpc_core::LoadBalancingPolicy::UpdateArgs::args = nullptr

Definition at line 330 of file lb_policy.h.

◆ config

RefCountedPtr<Config> grpc_core::LoadBalancingPolicy::UpdateArgs::config

The LB policy config.

Definition at line 320 of file lb_policy.h.

◆ resolution_note

std::string grpc_core::LoadBalancingPolicy::UpdateArgs::resolution_note

A human-readable note providing context about the name resolution that provided this update. LB policies may wish to include this message in RPC failure status messages. For example, if the update has an empty list of addresses, this message might say "no DNS entries found for <name>".

Definition at line 326 of file lb_policy.h.


The documentation for this struct was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36