Struct AttributePermissions
pub struct AttributePermissions {
pub read: Option<SecurityRequirements>,
pub write: Option<SecurityRequirements>,
pub update: Option<SecurityRequirements>,
/* private fields */
}
Expand description
Specifies the access permissions for a specific attribute value.
Fields§
§read: Option<SecurityRequirements>
Specifies whether an attribute has the read permission. If not present, the attribute value cannot be read. Otherwise, it can be read only if the permissions specified in the SecurityRequirements table are satisfied.
write: Option<SecurityRequirements>
Specifies whether an attribute has the write permission. If not present, the attribute value cannot be written. Otherwise, it can be written only if the permissions specified in the SecurityRequirements table are satisfied.
update: Option<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 must be present. Otherwise, this field must not be present.
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 Default for AttributePermissions
impl Default for AttributePermissions
§fn default() -> AttributePermissions
fn default() -> AttributePermissions
§impl<D> Encode<AttributePermissions, D> for &AttributePermissionswhere
D: ResourceDialect,
impl<D> Encode<AttributePermissions, D> for &AttributePermissionswhere
D: ResourceDialect,
§impl PartialEq for AttributePermissions
impl PartialEq 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
.