pub struct Downloader { /* private fields */ }Expand description
Tor Expert Bundle Downloader https://www.torproject.org/download/tor/
Implementations§
Source§impl Downloader
impl Downloader
pub fn new() -> Result<Self>
pub async fn new_with_options(options: DownloadOptions) -> Result<Self>
pub fn download_path(&self) -> &PathBuf
pub fn version(&self) -> &String
Sourcepub async fn download(&self) -> Result<()>
pub async fn download(&self) -> Result<()>
Downloads the Tor Expert Bundle and returns the path to its assets.
pub fn download_tarball_path(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for Downloader
impl RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl UnwindSafe for Downloader
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