pub enum Authorization {
NotDetermined,
Restricted,
Denied,
Allowed,
}Expand description
Whether this process may use Bluetooth at all.
On Apple platforms this is the TCC verdict. Linux has no such gate, so the
backend reports whether bluetoothd is reachable over D-Bus, which is the
closest equivalent: a denial there is a policy decision too.
Variants§
NotDetermined
Never asked. On Apple platforms, also what a process with no
NSBluetoothAlwaysUsageDescription sees — and it is never prompted.
Restricted
Refused by policy rather than by the user, such as an MDM profile.
Denied
The user said no.
Allowed
Permitted.
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
impl Copy for Authorization
Source§impl Debug for Authorization
impl Debug for Authorization
impl Eq for Authorization
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Forget for Authorization
impl Freeze for Authorization
impl Move for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnsafeUnpin for Authorization
impl UnwindSafe for Authorization
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