timeout

Function timeout 

Source
pub fn timeout(duration: Duration) -> Middleware
Expand description

Per-request timeout; on timeout return 504.