pub struct App { /* private fields */ }
Implementations§
Source§impl App
impl App
pub fn new() -> Result<Self>
pub fn fetch(&self, url: &str, update_existing: bool) -> Result<Repository>
pub fn extract( &self, repo: &Repository, rev: Oid, upstream_path: &Path, local_path: &Path, ) -> Result<()>
pub fn canonicalize( &self, repo: &Repository, local_path: &Path, ) -> Result<PathBuf>
pub fn register( &self, url: &str, rev: Oid, upstream_path: &Path, local_path: &Path, ) -> Result<()>
pub fn list(&self) -> Result<HashMap<String, SubcopyConfigOption>>
pub fn get(&self, key: &Path) -> Result<SubcopyConfig>
pub fn with_repo<F, T>( &self, url: &str, rev: &str, upstream_path: &Path, local_path: &Path, callback: F, ) -> Result<T>
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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