Trait cargo_backup::remote::RemoteProvider
source · [−]pub trait RemoteProvider {
fn get_keyring() -> Entry;
fn new() -> Self;
fn pull(&self) -> Result<Vec<Package>, Box<dyn Error>>;
fn push(&self, backup: &[Package]) -> Result<(), Box<dyn Error>>;
fn login(&self, relogin: bool) -> Result<(), Box<dyn Error>>;
fn set_id(&self, id: String) -> Result<(), Box<dyn Error>>;
}Required Methods
sourcefn get_keyring() -> Entry
fn get_keyring() -> Entry
Get the keyring for the provider.
sourcefn push(&self, backup: &[Package]) -> Result<(), Box<dyn Error>>
fn push(&self, backup: &[Package]) -> Result<(), Box<dyn Error>>
Pushes a backup to a remote server.