Checks if the current user is an administrator.
(&self)
| 147 | |
| 148 | /// Checks if the current user is an administrator. |
| 149 | pub fn is_admin(&self) -> Result<bool, ()> { |
| 150 | if !self.has_pulled_users() { |
| 151 | self.pull_users()?; |
| 152 | } |
| 153 | Ok(unsafe { BNRemoteIsAdmin(self.handle.as_ptr()) }) |
| 154 | } |
| 155 | |
| 156 | /// Checks if the remote is the same as the Enterprise License server. |
| 157 | pub fn is_enterprise(&self) -> Result<bool, ()> { |
nothing calls this directly
no test coverage detected