pub trait ServeTransport {
// Required method
fn start(&self, addr: &str, root: &str) -> Result<()>;
}Expand description
Pluggable transport that drives the dev server.
Production code uses HttpTransport (a thin wrapper around
http_handle::Server); tests use a test-only NoopTransport which
records the call without actually binding a port. The trait exists
so every line of serve_site is unit-testable.