upload_stream

Function upload_stream 

Source
pub(crate) async fn upload_stream(
    client: &Client,
    endpoint: &str,
    fields: UploadFields<'_>,
) -> Result<(), UploadError>
Expand description

Uploads one completed voice stream to an SDRTrunk-compatible Rdio Scanner endpoint.

Builds the multipart form from fields, POSTs it to endpoint with User-Agent: sdrtrunk, and verifies the response body contains the "Call imported successfully." marker. Any deviation (network error, non-2xx status, missing marker) becomes an UploadError.

§Errors