Skip to main content

ours_to_hear

Function ours_to_hear 

Source
fn ours_to_hear(update: &SessionUpdate, me: u64) -> bool
Expand description

Whether this connection is one of an update’s readers.

Every Dictate* update about a take belongs to the connection that started it, so a connection hears its own take and no other’s - and an in-process take, whose updates carry no connection at all, is nobody’s on the socket. Every other update keeps the watch rule alone.