MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / check_error

Method check_error

crates/wasi/src/p2/write_stream.rs:19–27  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

17
18impl WorkerState {
19 fn check_error(&mut self) -> Result<(), StreamError> {
20 if let Some(e) = self.error.take() {
21 return Err(StreamError::LastOperationFailed(e));
22 }
23 if !self.alive {
24 return Err(StreamError::Closed);
25 }
26 Ok(())
27 }
28}
29
30struct Worker {

Callers 3

check_writeMethod · 0.80
writeMethod · 0.80
flushMethod · 0.80

Calls 2

OkFunction · 0.85
takeMethod · 0.45

Tested by

no test coverage detected