Struct rdedup_lib::Repo
[−]
[src]
pub struct Repo { // some fields omitted }
Methods
impl Repo
[src]
fn init(repo_path: &Path, passphrase: &str) -> Result<Repo>
fn get_seckey(&self, passphrase: &str) -> Result<SecretKey>
fn open(repo_path: &Path) -> Result<Repo>
fn rm(&self, name: &str) -> Result<()>
Remove a stored name from repo
fn write<R: Read>(&self, name: &str, reader: &mut R) -> Result<()>
fn read<W: Write>(&self, name: &str, writer: &mut W, seckey: &SecretKey) -> Result<()>
fn du(&self, name: &str, seckey: &SecretKey) -> Result<u64>
fn list_names(&self) -> Result<Vec<String>>
List all names
fn gc(&self) -> Result<usize>
Trait Implementations
impl Debug for Repo
[src]
impl Clone for Repo
[src]
fn clone(&self) -> Repo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more