Pulls the list of projects from the Remote. # Arguments `progress` - Function to call for progress updates
(
&self,
mut progress: F,
)
| 328 | /// |
| 329 | /// * `progress` - Function to call for progress updates |
| 330 | pub fn pull_projects_with_progress<F: ProgressCallback>( |
| 331 | &self, |
| 332 | mut progress: F, |
| 333 | ) -> Result<(), ()> { |
| 334 | let success = unsafe { |
| 335 | BNRemotePullProjects( |
| 336 | self.handle.as_ptr(), |
| 337 | Some(F::cb_progress_callback), |
| 338 | &mut progress as *mut F as *mut c_void, |
| 339 | ) |
| 340 | }; |
| 341 | success.then_some(()).ok_or(()) |
| 342 | } |
| 343 | |
| 344 | /// Creates a new project on the remote (and pull it). |
| 345 | /// |