Function run_at

Source
pub async fn run_at(
    bootstrapper: Bootstrapper<Initialized>,
    listener: TcpListener,
) -> Result<()>
Expand description

Runs the Cot project on the given listener.

This function takes a Cot project and a tokio::net::TcpListener and runs the project on the given listener.

If you need more control over the server listening socket, such as modifying the underlying buffer sizes, you can create a tokio::net::TcpListener and pass it to this function. Otherwise, run function will be more convenient.

ยงErrors

This function returns an error if the server fails to start.