pub struct Permissions(pub u32);Expand description
What a peripheral may permit a central to do with an attribute.
The Bluetooth permission bits. CoreBluetooth calls these
CBAttributePermissions; Android splits the same ideas across
BluetoothGattCharacteristic.PERMISSION_*.
Tuple Fields§
§0: u32Implementations§
Source§impl Permissions
impl Permissions
Sourcepub const READ_ENCRYPTION_REQUIRED: u32 = 0x04
pub const READ_ENCRYPTION_REQUIRED: u32 = 0x04
Reads require an encrypted link.
Sourcepub const WRITE_ENCRYPTION_REQUIRED: u32 = 0x08
pub const WRITE_ENCRYPTION_REQUIRED: u32 = 0x08
Writes require an encrypted link.
Sourcepub fn readable(self) -> bool
pub fn readable(self) -> bool
Whether Self::READABLE is set.
Sourcepub fn writeable(self) -> bool
pub fn writeable(self) -> bool
Whether Self::WRITEABLE is set.
Trait Implementations§
Source§impl Clone for Permissions
impl Clone for Permissions
impl Copy for Permissions
Source§impl Debug for Permissions
impl Debug for Permissions
Source§impl Default for Permissions
impl Default for Permissions
impl Eq for Permissions
Source§impl PartialEq for Permissions
impl PartialEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl Freeze for Permissions
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnsafeUnpin for Permissions
impl UnwindSafe for Permissions
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