Skip to main content

parse_grpc_timeout

Function parse_grpc_timeout 

Source
pub fn parse_grpc_timeout(raw: &str) -> Option<Duration>
Expand description

Parses a gRPC grpc-timeout header value (<1..8 digits><H|M|S|m|u|n>) into a Duration.

§Arguments

  • &str - Raw grpc-timeout header value.

§Returns

  • Option<Duration> - Parsed timeout duration, or None when malformed.