Pulls the list of users from the remote. NOTE: This function is only available to accounts with admin status on the Remote. Non-admin accounts attempting to call this function will pull an empty list of users. # Arguments `progress` - Closure called to report progress. Takes current and total progress counts.
(&self, mut progress: P)
| 766 | /// |
| 767 | /// * `progress` - Closure called to report progress. Takes current and total progress counts. |
| 768 | pub fn pull_users_with_progress<P: ProgressCallback>(&self, mut progress: P) -> Result<(), ()> { |
| 769 | let success = unsafe { |
| 770 | BNRemotePullUsers( |
| 771 | self.handle.as_ptr(), |
| 772 | Some(P::cb_progress_callback), |
| 773 | &mut progress as *mut P as *mut c_void, |
| 774 | ) |
| 775 | }; |
| 776 | success.then_some(()).ok_or(()) |
| 777 | } |
| 778 | |
| 779 | /// Creates a new user on the remote and returns a reference to the created user. |
| 780 | /// |