pub struct Driver { /* private fields */ }
Expand description
A driver for orchestrating the process of fetching a list of repositories and then downloading each of them.
Implementations§
Source§impl Driver
impl Driver
Sourcepub fn with_config(config: Config) -> Driver
pub fn with_config(config: Config) -> Driver
Create a new Driver
with the provided config.
Sourcepub fn run(&self) -> Result<(), Error>
pub fn run(&self) -> Result<(), Error>
Download a list of all repositories from the Provider
s found in the
configuration file, then fetch any recent changes (running git clone
if necessary).
Sourcepub fn update_repos(&self, repos: &[Repo]) -> Result<(), UpdateFailure>
pub fn update_repos(&self, repos: &[Repo]) -> Result<(), UpdateFailure>
Update the provided repositories.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more