pub trait RemoteProvider {
// Required methods
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.