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

Method send

libs/hbb_common/src/tcp.rs:152–154  ·  view source on GitHub ↗
(&mut self, msg: &impl Message)

Source from the content-addressed store, hash-verified

150
151 #[inline]
152 pub async fn send(&mut self, msg: &impl Message) -> ResultType<()> {
153 self.send_raw(msg.write_to_bytes()?).await
154 }
155
156 #[inline]
157 pub async fn send_raw(&mut self, msg: Vec<u8>) -> ResultType<()> {

Callers 1

send_bytesMethod · 0.45

Calls 1

send_rawMethod · 0.45

Tested by

no test coverage detected