Struct ubiquity::archive::Archive
[−]
[src]
pub struct Archive { pub directory: PathBuf, }
The Archive
struct stores the state of the replicas after the last syncing operation.
It is used to detect differences to replicas more quickly, and must be kept up to date after propagating changes.
Fields
directory: PathBuf
Methods
impl Archive
[src]
fn new(directory: PathBuf) -> Result<Self, Error>
Initializes a directory at the provided path and gets ready to start reading/writing archive data.
fn for_directory(&self, directory: &Path) -> ArchiveFile
Constructs an ArchiveFile
representing the entire directory
in the replicas.
fn for_hashed_directory(&self, directory: HashedPath) -> ArchiveFile
Constructs an ArchiveFile
from a hashed directory, representing an entire directory in the replicas.