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 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, passphrase: &str) -> Result<()>
fn du(&self, name: &str, passphrase: &str) -> Result<u64>
fn du_by_digest(&self, digest: &[u8], passphrase: &str) -> Result<u64>
fn name_to_digest(&self, name: &str) -> Result<Vec<u8>>
fn list_names(&self) -> Result<Vec<String>>
List all names
fn list_stored_chunks(&self) -> Result<HashSet<Vec<u8>>>
fn list_reachable_chunks(&self) -> Result<HashSet<Vec<u8>>>
Return all reachable chunks
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