Skip to main content

serverkit_hyper/
run.rs

1/// Runs a ServerKit router with a listener supported by this adapter.
2pub trait Run<L> {
3    /// The value returned by the selected driver.
4    type Output;
5
6    /// Serves the router using `listener`.
7    fn run(self, listener: L) -> Self::Output;
8}