Non-blocking emit. Drops the event if the queue is full. Returns whether the event was enqueued.
(tx: &ActivitySender, denied: bool, deny_group: &'static str)
| 34 | /// Non-blocking emit. Drops the event if the queue is full. |
| 35 | /// Returns whether the event was enqueued. |
| 36 | pub fn try_record_activity(tx: &ActivitySender, denied: bool, deny_group: &'static str) -> bool { |
| 37 | tx.try_send(ActivityEvent { denied, deny_group }).is_ok() |
| 38 | } |
| 39 | |
| 40 | #[cfg(test)] |
| 41 | mod tests { |
no outgoing calls
no test coverage detected