MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / recv

Method recv

crates/chat-cli/src/api_client/send_message_output.rs:24–34  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

22 }
23
24 pub async fn recv(&mut self) -> Result<Option<ChatResponseStream>, ApiClientError> {
25 match self {
26 SendMessageOutput::Codewhisperer(output) => Ok(output
27 .generate_assistant_response_response
28 .recv()
29 .await?
30 .map(|s| s.into())),
31 SendMessageOutput::QDeveloper(output) => Ok(output.send_message_response.recv().await?.map(|s| s.into())),
32 SendMessageOutput::Mock(vec) => Ok(vec.pop()),
33 }
34 }
35}
36
37impl RequestId for SendMessageOutput {

Callers 4

test_mockFunction · 0.45
recv_codeMethod · 0.45
nextMethod · 0.45
integ_test_rts_cancelFunction · 0.45

Calls 1

mapMethod · 0.80

Tested by 1

test_mockFunction · 0.36