fn url(
    server_address: SocketAddr,
    final_path_element: &str,
    maybe_start_from: Option<Id>,
) -> String {
    format!(
        "http://{}/{}/{}{}",
        server_address,
        ROOT_PATH,
        final_path_element,
        match maybe_start_from {
            Some(start_from) => format!("?{}={}", QUERY_FIELD, start_from),
            None => String::new(),
        }
    )
}
/// Returns the URL for a client to use to connect to the server at the given address.
///
/// The URL is `/events/<final_path_element>` with `?start_from=X` query string appended if
/// `maybe_start_from` is `Some`.
Returns the URL for a client to use to connect to the server at the given address.
Returns the URL for a client to use to connect to the server at the given address .
fn url(
    server_address: SocketAddr,
    final_path_element: &str,
    maybe_start_from: Option<Id>,
) -> String {
    format!(
        "http://{}/{}/{}{}",
        server_address,
        ROOT_PATH,
        final_path_element,
        match maybe_start_from {
            Some(start_from) => format!("?{}={}", QUERY_FIELD, start_from),
            None => String::new(),
        }
    )
}
fn url ( server_address : SocketAddr , final_path_element : & str , maybe_start_from : Option < Id > , ) -> String { format ! ( " " server_address ROOT_PATH final_path_element match maybe_start_from { Some ( start_from ) format ( " " QUERY_FIELD start_from ) None String new ( ) } ) }
Returns the URL for a client to use to connect to the server at the given address.
Returns the URL for a client to use to connect to the server at the given address .
server_address
SocketAddr
final_path_element
&str
maybe_start_from
Option<Id>
server_address
SocketAddr
final_path_element
&str
maybe_start_from
Option<Id>