Struct crdt_fileset::FileSet
[−]
[src]
pub struct FileSet<FU: FileUpdater> { /* fields omitted */ }
Methods
impl<FU: FileUpdater> FileSet<FU>
[src]
fn compress_to<W: Write>(&self, writer: &mut W) -> Result<()>
fn expand_from<R: Read>(
reader: &mut R,
updater: FU,
storage_path: PathBuf
) -> Result<FileSet<FU>>
reader: &mut R,
updater: FU,
storage_path: PathBuf
) -> Result<FileSet<FU>>
impl<FU: FileUpdater> FileSet<FU>
[src]
fn new<P: AsRef<Path>>(
updater: FU,
site_id: u32,
storage_path: P
) -> Result<FileSet<FU>>
updater: FU,
site_id: u32,
storage_path: P
) -> Result<FileSet<FU>>
fn integrate_remote(
&mut self,
remote: FileSetOperation<FU>
) -> Result<(), FileSetError>
&mut self,
remote: FileSetOperation<FU>
) -> Result<(), FileSetError>
fn has_path(&self, path: &PathBuf) -> bool
fn process_create(&mut self, path: &Path) -> FileSetOperation<FU>
fn process_remove(&mut self, path: &Path) -> FileSetOperation<FU>
fn process_remove_folder(&mut self, path: &Path) -> Vec<FileSetOperation<FU>>
fn process_update(
&mut self,
path: &Path,
transaction: FU::FileTransaction,
timestamp_lookup: BTreeMap<u32, (u32, u32)>
) -> FileSetOperation<FU>
&mut self,
path: &Path,
transaction: FU::FileTransaction,
timestamp_lookup: BTreeMap<u32, (u32, u32)>
) -> FileSetOperation<FU>
fn process_file_move(
&mut self,
old_path: &Path,
new_path: &Path
) -> FileSetOperation<FU>
&mut self,
old_path: &Path,
new_path: &Path
) -> FileSetOperation<FU>
fn get_changes_since(
&self,
timestamp: Option<(u32, u32)>
) -> HashMap<(u32, u32), FileHistory<FU>>
&self,
timestamp: Option<(u32, u32)>
) -> HashMap<(u32, u32), FileHistory<FU>>
fn get_all_files(&self) -> &HashMap<(u32, u32), FileMetadata>
fn get_file_history_for(&self, file: (u32, u32)) -> Option<FU::FileTransaction>
fn integrate_remote_file_list(
&mut self,
file_list: HashMap<(u32, u32), FileHistory<FU>>,
timestamp_lookup: BTreeMap<u32, (u32, u32)>
) -> Vec<FileSetOperation<FU>>
&mut self,
file_list: HashMap<(u32, u32), FileHistory<FU>>,
timestamp_lookup: BTreeMap<u32, (u32, u32)>
) -> Vec<FileSetOperation<FU>>