pub fn write_event(event: &Event) -> Result<(), Error>Expand description
Writes an event to the events buffer.
§Parameters
event: The event to write
§Errors
Returns an error if the event data exceeds the maximum size.
§Examples
use android_logd_logger::{write_event, Error, Event, EventValue};
android_logd_logger::builder().init();
write_event(&Event {
timestamp: std::time::SystemTime::now(),
tag: 1,
value: "blah".into(),
}).unwrap();