pub struct DatasetDownloader { /* private fields */ }Expand description
Separate HTTPS downloader for URLs returned by DMVS.
It never inherits the SOAP client’s mTLS identity, headers, cookies, or other credentials. Ambient system proxies, redirects, and automatic retries are disabled.
Implementations§
Source§impl DatasetDownloader
impl DatasetDownloader
Sourcepub fn builder() -> DatasetDownloaderBuilder
pub fn builder() -> DatasetDownloaderBuilder
Starts building a credential-free dataset downloader.
Sourcepub async fn download(
&self,
url: &Url,
expectation: DownloadExpectation,
) -> Result<DownloadedDataset>
pub async fn download( &self, url: &Url, expectation: DownloadExpectation, ) -> Result<DownloadedDataset>
Downloads to a bounded buffer after explicit caller initiation.
Sourcepub async fn download_to<W: AsyncWrite + Unpin>(
&self,
url: &Url,
expectation: DownloadExpectation,
sink: &mut W,
) -> Result<DownloadSummary>
pub async fn download_to<W: AsyncWrite + Unpin>( &self, url: &Url, expectation: DownloadExpectation, sink: &mut W, ) -> Result<DownloadSummary>
Streams to a caller sink with a hard byte limit and optional verification.
The sink may already contain bytes when an integrity or transport error is reported; callers should use temporary output and commit it after success.
Trait Implementations§
Source§impl Clone for DatasetDownloader
impl Clone for DatasetDownloader
Auto Trait Implementations§
impl !RefUnwindSafe for DatasetDownloader
impl !UnwindSafe for DatasetDownloader
impl Forget for DatasetDownloader
impl Freeze for DatasetDownloader
impl Move for DatasetDownloader
impl Send for DatasetDownloader
impl Sync for DatasetDownloader
impl Unpin for DatasetDownloader
impl UnsafeUnpin for DatasetDownloader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more