Skip to main content

send_record

Function send_record 

Source
pub async fn send_record(text: &str) -> Result<(), RecordError>
Expand description

One whole line of any length up to the ring, back-pressured like send_line: for data records (CSV rows, file dumps) that must arrive complete. No line buffer — header, text and CRLF go into the ring in one critical section once there is room for all of it, so no other line can land inside the record and nothing is truncated.