(state: Arc<ServerState>)
| 132 | #[must_use] |
| 133 | #[allow(clippy::missing_const_for_fn)] |
| 134 | pub fn new(state: Arc<ServerState>) -> Self { |
| 135 | Self { state } |
| 136 | } |
| 137 | |
| 138 | /// Serve a connection, routing to gRPC or HTTP based on content-type. |
| 139 | pub async fn serve<S>(&self, stream: S) -> Result<(), Box<dyn std::error::Error + Send + Sync>> |
nothing calls this directly
no outgoing calls
no test coverage detected