Skip to main content

format_grpc_timeout

Function format_grpc_timeout 

Source
pub fn format_grpc_timeout(d: Duration) -> String
Expand description

Format a Duration as a grpc-timeout header value.

Picks the smallest unit such that the rounded-up integer value fits in 8 digits. Durations longer than 99,999,999 hours saturate to that.