pub struct SyncClient<'a> { /* private fields */ }Expand description
A sync client for communicating with a Heroforge server.
Implementations§
Source§impl<'a> SyncClient<'a>
impl<'a> SyncClient<'a>
Sourcepub fn new(repo: &'a Repository, url: &str) -> Result<Self>
pub fn new(repo: &'a Repository, url: &str) -> Result<Self>
Create a new sync client.
§Arguments
repo- The local repositoryurl- URL of the remote Heroforge server
Sourcepub fn pull(&mut self, username: &str, password: &str) -> Result<SyncStats>
pub fn pull(&mut self, username: &str, password: &str) -> Result<SyncStats>
Pull artifacts from the remote server.