Get the single actively connected Remote (for ux simplification), if any
()
| 48 | |
| 49 | /// Get the single actively connected Remote (for ux simplification), if any |
| 50 | pub fn active_remote() -> Option<Ref<Remote>> { |
| 51 | let value = unsafe { BNCollaborationGetActiveRemote() }; |
| 52 | NonNull::new(value).map(|h| unsafe { Remote::ref_from_raw(h) }) |
| 53 | } |
| 54 | |
| 55 | /// Set the single actively connected Remote |
| 56 | pub fn set_active_remote(remote: Option<&Remote>) { |