pub struct GitFetcher { /* private fields */ }Expand description
Git repository fetcher for bootloader files.
Implementations§
Source§impl GitFetcher
impl GitFetcher
Sourcepub fn new(cache_dir: PathBuf) -> Self
pub fn new(cache_dir: PathBuf) -> Self
Create a new git fetcher with the specified cache directory.
Sourcepub fn fetch(&self, url: &str, name: &str, branch: &str) -> Result<PathBuf>
pub fn fetch(&self, url: &str, name: &str, branch: &str) -> Result<PathBuf>
Fetch a git repository to the cache directory.
If the repository already exists, it will be used as-is. If not, it will be cloned from the URL.
Auto Trait Implementations§
impl Freeze for GitFetcher
impl RefUnwindSafe for GitFetcher
impl Send for GitFetcher
impl Sync for GitFetcher
impl Unpin for GitFetcher
impl UnwindSafe for GitFetcher
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