MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / try_send

Method try_send

nodedb/src/control/server/sync/presence/manager.rs:39–41  ·  view source on GitHub ↗

Try to send serialized frame bytes. Returns `false` if buffer full or closed.

(&self, bytes: &SharedBytes)

Source from the content-addressed store, hash-verified

37
38 /// Try to send serialized frame bytes. Returns `false` if buffer full or closed.
39 pub fn try_send(&self, bytes: &SharedBytes) -> bool {
40 self.tx.try_send(Arc::clone(bytes)).is_ok()
41 }
42}
43
44/// Frames to send after releasing the write lock.

Callers 15

applyMethod · 0.80
submitMethod · 0.80
sendMethod · 0.80
completeMethod · 0.80
notifyMethod · 0.80
deliverMethod · 0.80
publishMethod · 0.80
enqueueMethod · 0.80
broadcastMethod · 0.80
send_allMethod · 0.80
run_apply_loopFunction · 0.80

Calls 1

is_okMethod · 0.80