Skip to main content

Module DownloadStreamRpc

Module DownloadStreamRpc 

Source
Expand description

AirClient::DownloadStream - initiates a streaming download from the Air daemon’s DownloaderService and returns a DownloadStream::Struct that yields chunks via .next().await.

Unlike AirClient::DownloadFile, the gRPC call returns immediately after the server accepts the request; bytes flow as [DownloadStreamChunk::Struct] items the caller pumps until chunk.completed == true. Suitable for large files where the caller wants to surface progress or stream into a sink without an intermediate Vec<u8> buffer.