pub struct Fetcher { /* private fields */ }Implementations§
Source§impl Fetcher
impl Fetcher
pub fn new(dest_root: impl Into<PathBuf>) -> Self
pub fn with_timings(dest_root: impl Into<PathBuf>, timings: Timings) -> Self
pub fn fetch( &self, spec: &FetchSpec, cancel: &CancelToken, progress: impl FnMut(FetchProgress), ) -> Result<PathBuf, FetchError>
pub fn fetch_request( &self, request: &Request, cancel: &CancelToken, progress: impl FnMut(FetchProgress), ) -> Result<PathBuf, FetchError>
Auto Trait Implementations§
impl Freeze for Fetcher
impl !RefUnwindSafe for Fetcher
impl Send for Fetcher
impl Sync for Fetcher
impl Unpin for Fetcher
impl UnsafeUnpin for Fetcher
impl !UnwindSafe for Fetcher
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