MCPcopy Create free account
hub / github.com/HFQR/xitca-web / code_eof

Method code_eof

http-encoding/src/lib.rs:54–62  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

52 }
53
54 fn code_eof(&mut self) -> io::Result<Option<Self::Item>> {
55 match self.0.take() {
56 Some(mut decoder) => {
57 let b = decoder.finish()?.take_owned();
58 Ok(Some(b))
59 }
60 None => Ok(None),
61 }
62 }
63
64 #[inline]
65 fn is_end_stream(&self, _: &impl http_body_alt::Body) -> bool {

Callers

nothing calls this directly

Calls 4

take_ownedMethod · 0.80
takeMethod · 0.45
finishMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected