MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getRemainingAttempts

Function getRemainingAttempts

Libraries/HttpClient/HttpClientSession.h:95–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 [[nodiscard]] bool isStarted() const { return attemptsStarted > 0; }
94 [[nodiscard]] bool hasAttemptsRemaining() const { return attemptsStarted < policy.maxAttempts; }
95 [[nodiscard]] uint8_t getRemainingAttempts() const
96 {
97 return attemptsStarted < policy.maxAttempts ? static_cast<uint8_t>(policy.maxAttempts - attemptsStarted) : 0;
98 }
99};
100
101/// @brief Optional caller-owned state layer above the stateless HttpClient core.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected