Struct bluer::gatt::CharacteristicFlags
source · [−]pub struct CharacteristicFlags {Show 17 fields
pub broadcast: bool,
pub read: bool,
pub write_without_response: bool,
pub write: bool,
pub notify: bool,
pub indicate: bool,
pub authenticated_signed_writes: bool,
pub extended_properties: bool,
pub reliable_write: bool,
pub writable_auxiliaries: bool,
pub encrypt_read: bool,
pub encrypt_write: bool,
pub encrypt_authenticated_read: bool,
pub encrypt_authenticated_write: bool,
pub secure_read: bool,
pub secure_write: bool,
pub authorize: bool,
}
bluetoothd
only.Expand description
Bluetooth GATT characteristic flags.
Fields
broadcast: bool
If set, permits broadcasts of the Characteristic Value using Server Characteristic Configuration Descriptor.
read: bool
If set allows clients to read this characteristic.
write_without_response: bool
If set allows clients to use the Write Request/Response operation.
write: bool
If set allows clients to use the Write Command ATT operation.
notify: bool
If set allows the client to use the Handle Value Notification operation.
indicate: bool
If set allows the client to use the Handle Value Indication/Confirmation operation.
authenticated_signed_writes: bool
If set allows clients to use the Signed Write Without Response procedure.
extended_properties: bool
Extended properties available.
reliable_write: bool
If set allows clients to use the Reliable Writes procedure.
writable_auxiliaries: bool
If set a client can write to the Characteristic User Description Descriptor.
encrypt_read: bool
Require encryption for reading.
encrypt_write: bool
Require encryption for writing.
encrypt_authenticated_read: bool
Require authentication for reading.
encrypt_authenticated_write: bool
Require authentication for writing.
secure_read: bool
Require security for reading.
secure_write: bool
Require security for writing.
Authorize flag.
Trait Implementations
sourceimpl Clone for CharacteristicFlags
impl Clone for CharacteristicFlags
sourcefn clone(&self) -> CharacteristicFlags
fn clone(&self) -> CharacteristicFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CharacteristicFlags
impl Debug for CharacteristicFlags
sourceimpl Default for CharacteristicFlags
impl Default for CharacteristicFlags
sourcefn default() -> CharacteristicFlags
fn default() -> CharacteristicFlags
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CharacteristicFlags
impl<'de> Deserialize<'de> for CharacteristicFlags
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for CharacteristicFlags
impl Hash for CharacteristicFlags
sourceimpl Ord for CharacteristicFlags
impl Ord for CharacteristicFlags
sourceimpl PartialEq<CharacteristicFlags> for CharacteristicFlags
impl PartialEq<CharacteristicFlags> for CharacteristicFlags
sourcefn eq(&self, other: &CharacteristicFlags) -> bool
fn eq(&self, other: &CharacteristicFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CharacteristicFlags) -> bool
fn ne(&self, other: &CharacteristicFlags) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CharacteristicFlags> for CharacteristicFlags
impl PartialOrd<CharacteristicFlags> for CharacteristicFlags
sourcefn partial_cmp(&self, other: &CharacteristicFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &CharacteristicFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for CharacteristicFlags
impl Serialize for CharacteristicFlags
impl Copy for CharacteristicFlags
impl Eq for CharacteristicFlags
impl StructuralEq for CharacteristicFlags
impl StructuralPartialEq for CharacteristicFlags
Auto Trait Implementations
impl RefUnwindSafe for CharacteristicFlags
impl Send for CharacteristicFlags
impl Sync for CharacteristicFlags
impl Unpin for CharacteristicFlags
impl UnwindSafe for CharacteristicFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more