mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 15:46:36 +00:00
Add new fn Download::with_data_verifier
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3cee8a927b
commit
c19fcb697a
1 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,13 @@ impl<'a> Download<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn with_data_verifier<'d>(self, data_verifier: &'d mut dyn DataVerifier) -> Download<'d> {
|
||||||
|
Download {
|
||||||
|
content: self.content,
|
||||||
|
data_verifier: Some(data_verifier),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async fn get_stream(
|
async fn get_stream(
|
||||||
self,
|
self,
|
||||||
) -> Result<
|
) -> Result<
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue