pub fn timeout(duration: Duration) -> TimeoutLayer
Create a timeout layer with the specified duration