Skip to main content

print_ready

Function print_ready 

Source
pub fn print_ready(port: u16)
Expand description

Display the final “Server ready” message with the server URL

Prints a formatted message indicating that the server is ready, including the URL and port number. The URL is displayed in green and bold for emphasis, and a note about stopping the server is shown in dimmed text.

§Arguments

  • port - The port number on which the server is running.

§Example

print_ready(8080);