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

Method next_timeout

libs/hbb_common/src/tcp.rs:190–196  ·  view source on GitHub ↗
(&mut self, ms: u64)

Source from the content-addressed store, hash-verified

188
189 #[inline]
190 pub async fn next_timeout(&mut self, ms: u64) -> Option<Result<BytesMut, Error>> {
191 if let Ok(res) = super::timeout(ms, self.next()).await {
192 res
193 } else {
194 None
195 }
196 }
197
198 pub fn set_key(&mut self, key: Key) {
199 self.2 = Some(Encrypt::new(key));

Callers

nothing calls this directly

Calls 2

timeoutFunction · 0.85
nextMethod · 0.45

Tested by

no test coverage detected