async fn client_prompt(
    input: &mut BufReader<Stdin>,
    output: &mut Stdout,
    size: usize,
) -> Result<String, std::io::Error> {
    prompt(
        &format!(
            "[size: {}] Type a string to push, or [ENTER] to pop/quit: ",
            size
        ),
        input,
        output,
        |s| Ok::<_, ()>(s.to_string()),
    )
    .await
}
/// The prompt function for the client.
The prompt function for the client.
The prompt function for the client .
async fn client_prompt(
    input: &mut BufReader<Stdin>,
    output: &mut Stdout,
    size: usize,
) -> Result<String, std::io::Error> {
    prompt(
        &format!(
            "[size: {}] Type a string to push, or [ENTER] to pop/quit: ",
            size
        ),
        input,
        output,
        |s| Ok::<_, ()>(s.to_string()),
    )
    .await
}
async fn client_prompt ( input : & mut BufReader < Stdin > , output : & mut Stdout , size : usize , ) -> Result < String , std :: io :: Error > { prompt ( & format ! ( " " size ) , input , output , | s | Ok :: < _ , ( ) > ( s . to_string ( ) ) , ) . await }
The prompt function for the client.
The prompt function for the client .
input
&mut BufReader<Stdin>
output
&mut Stdout
size
usize