pub struct Local {
pub channel: String,
pub root: PathBuf,
pub changes_dir: PathBuf,
pub pristine: Arc<Pristine>,
pub name: String,
}
Fields§
§channel: String
§root: PathBuf
§changes_dir: PathBuf
§pristine: Arc<Pristine>
§name: String
Implementations§
Source§impl Local
impl Local
pub fn get_state( &mut self, mid: Option<u64>, ) -> Result<Option<(u64, Merkle, Merkle)>, Error>
pub fn get_id(&self) -> Result<RemoteId, Error>
pub fn download_changelist<A, F: FnMut(&mut A, u64, Hash, Merkle, bool) -> Result<(), Error>>( &mut self, f: F, a: &mut A, from: u64, paths: &[String], ) -> Result<HashSet<Position<Hash>>, Error>
pub fn upload_changes( &mut self, progress_bar: ProgressBar, local: PathBuf, to_channel: Option<&str>, changes: &[CS], ) -> Result<(), Error>
pub async fn download_changes( &mut self, progress_bar: ProgressBar, hashes: &mut UnboundedReceiver<CS>, send: &mut Sender<(CS, bool)>, path: &mut PathBuf, ) -> Result<(), Error>
pub async fn update_identities( &mut self, _rev: Option<u64>, path: PathBuf, ) -> Result<u64, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Local
impl !RefUnwindSafe for Local
impl Send for Local
impl Sync for Local
impl Unpin for Local
impl !UnwindSafe for Local
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more