Crate sparkles
Source - config
- sender
- FinalizeGuard
- Guard that will finalize global buffer when dropped
Dropping this guard is equivalent to calling
sparkles::finalize - RangeStartGuard
- The value is created using macro
sparkles-macro::range_event_start!("name")
- finalize
- Blocking wait for global sending thread to finish its job
- flush_thread_local
- Manually flush all events from thread-local buffer to the global buffer
- init
- Init sparkles with the provided config
- init_default
- Init sparkles with default config
- instant_event
- Use
sparkles-macro::instant_event!("name") instead - range_event_start
- Use
sparkles-macro::range_event_start!("name") instead - set_cur_thread_name
- Update current visible thread name. It will override the previous name when parsed
- wait_client_connected
- If you use UDP, you can wait until someone connects to the server to start sending data