MCPcopy Create free account
hub / github.com/Recordscript/recordscript / send_bytes

Method send_bytes

libs/hbb_common/src/tcp.rs:167–174  ·  view source on GitHub ↗
(&mut self, bytes: Bytes)

Source from the content-addressed store, hash-verified

165
166 #[inline]
167 pub async fn send_bytes(&mut self, bytes: Bytes) -> ResultType<()> {
168 if self.3 > 0 {
169 super::timeout(self.3, self.0.send(bytes)).await??;
170 } else {
171 self.0.send(bytes).await?;
172 }
173 Ok(())
174 }
175
176 #[inline]
177 pub async fn next(&mut self) -> Option<Result<BytesMut, Error>> {

Callers 1

send_rawMethod · 0.80

Calls 2

timeoutFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected