MCPcopy Index your code
hub / github.com/endbasic/endbasic / call

Method call

sdl/src/console.rs:65–72  ·  view source on GitHub ↗

Issues a synchronous call against the console host for a request that returns nothing but an error (if any).

(&self, request: Request)

Source from the content-addressed store, hash-verified

63 /// Issues a synchronous call against the console host for a request that returns nothing but
64 /// an error (if any).
65 fn call(&self, request: Request) -> io::Result<()> {
66 self.request_tx.send(request).expect("Channel must be alive");
67 match self.response_rx.recv().expect("Channel must be alive") {
68 Response::Empty(Ok(v)) => Ok(v),
69 Response::Empty(Err(e)) => Err(e),
70 r => panic!("Unexpected response {:?}", r),
71 }
72 }
73}
74
75impl Drop for SdlConsole {

Callers 15

clearMethod · 0.80
set_colorMethod · 0.80
enter_altMethod · 0.80
hide_cursorMethod · 0.80
leave_altMethod · 0.80
locateMethod · 0.80
move_within_lineMethod · 0.80
printMethod · 0.80
show_cursorMethod · 0.80
writeMethod · 0.80
bucket_fillMethod · 0.80
draw_circleMethod · 0.80

Calls 1

recvMethod · 0.80

Tested by

no test coverage detected