userver: ugrpc::RetryInfo Struct Reference
Loading...
Searching...
No Matches
ugrpc::RetryInfo Struct Reference

#include <userver/ugrpc/rich_status.hpp>

Detailed Description

Describes when the client can retry a failed request.

See also
https:///github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto
ugrpc::RichStatus

Example usage:

grpc::StatusCode::UNAVAILABLE,
"Service overloaded",
ugrpc::RetryInfo{std::chrono::minutes{5}},
};

Definition at line 135 of file rich_status.hpp.

Public Member Functions

google::rpc::RetryInfo ToGoogleErrorDetail () const
 

Static Public Member Functions

static std::optional< RetryInfoTryUnpack (const google::protobuf::Any &any)
 

Public Attributes

std::chrono::nanoseconds retry_delay
 Clients should wait at least this long between retrying the same request.
 

Member Data Documentation

◆ retry_delay

std::chrono::nanoseconds ugrpc::RetryInfo::retry_delay

Clients should wait at least this long between retrying the same request.

Definition at line 137 of file rich_status.hpp.


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