Struct AttributePermissions
pub struct AttributePermissions {
pub read: Option<Box<SecurityRequirements>>,
pub write: Option<Box<SecurityRequirements>>,
pub update: Option<Box<SecurityRequirements>>,
}
Expand description
Specifies the access permissions for a specific attribute value.
Fields§
§read: Option<Box<SecurityRequirements>>
Specifies whether or not an attribute has the read permission. If null, then the attribute value cannot be read. Otherwise, it can be read only if the permissions specified in the Permissions struct are satisfied.
write: Option<Box<SecurityRequirements>>
Specifies whether or not an attribute has the write permission. If null, then the attribute value cannot be written. Otherwise, it be written only if the permissions specified in the Permissions struct are satisfied.
update: Option<Box<SecurityRequirements>>
Specifies the security requirements for a client to subscribe to notifications or indications on a characteristic. A characteristic’s support for notifications or indiciations is specified using the NOTIFY and INDICATE characteristic properties. If a local characteristic has one of these properties then this field can not be null. Otherwise, this field must be left as null.
This field is ignored for Descriptors.
Trait Implementations§
§impl Clone for AttributePermissions
impl Clone for AttributePermissions
§fn clone(&self) -> AttributePermissions
fn clone(&self) -> AttributePermissions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for AttributePermissions
impl Debug for AttributePermissions
§impl<D> Decode<AttributePermissions, D> for AttributePermissionswhere
D: ResourceDialect,
impl<D> Decode<AttributePermissions, D> for AttributePermissionswhere
D: ResourceDialect,
§fn new_empty() -> AttributePermissions
fn new_empty() -> AttributePermissions
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<AttributePermissions, D> for &AttributePermissionswhere
D: ResourceDialect,
impl<D> Encode<AttributePermissions, D> for &AttributePermissionswhere
D: ResourceDialect,
§impl Hash for AttributePermissions
impl Hash for AttributePermissions
§impl Ord for AttributePermissions
impl Ord for AttributePermissions
§fn cmp(&self, other: &AttributePermissions) -> Ordering
fn cmp(&self, other: &AttributePermissions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for AttributePermissions
impl PartialEq for AttributePermissions
§impl PartialOrd for AttributePermissions
impl PartialOrd for AttributePermissions
§impl TypeMarker for AttributePermissions
impl TypeMarker for AttributePermissions
§type Owned = AttributePermissions
type Owned = AttributePermissions
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for AttributePermissions
impl ValueTypeMarker for AttributePermissions
§type Borrowed<'a> = &'a AttributePermissions
type Borrowed<'a> = &'a AttributePermissions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<AttributePermissions as TypeMarker>::Owned,
) -> <AttributePermissions as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<AttributePermissions as TypeMarker>::Owned, ) -> <AttributePermissions as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.