pub fn serve<F>(filter: F) -> Server<F> where
F: Filter + Clone + Send + Sync + 'static,
F::Extract: Reply,
F::Error: IsReject,
Expand description
Create a Server
with the provided Filter
.
Examples found in repository?
More examples
Additional examples can be found in:
- examples/wrapping.rs
- examples/file.rs
- examples/headers.rs
- examples/todos.rs
- examples/body.rs
- examples/sse.rs
- examples/websockets.rs
- examples/rejections.rs
- examples/websockets_chat.rs
- examples/compression.rs
- examples/handlebars_template.rs
- examples/sse_chat.rs
- examples/query_string.rs
- examples/tracing.rs
- src/test.rs
- examples/routing.rs