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§
Source§impl Clone for AttributePermissions
impl Clone for AttributePermissions
Source§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 moreSource§impl Debug for AttributePermissions
impl Debug for AttributePermissions
Source§impl<D: ResourceDialect> Decode<AttributePermissions, D> for AttributePermissions
impl<D: ResourceDialect> Decode<AttributePermissions, D> for AttributePermissions
Source§impl Default for AttributePermissions
impl Default for AttributePermissions
Source§fn default() -> AttributePermissions
fn default() -> AttributePermissions
Source§impl<D: ResourceDialect> Encode<AttributePermissions, D> for &AttributePermissions
impl<D: ResourceDialect> Encode<AttributePermissions, D> for &AttributePermissions
Source§impl PartialEq for AttributePermissions
impl PartialEq for AttributePermissions
Source§impl TypeMarker for AttributePermissions
impl TypeMarker for AttributePermissions
Source§type Owned = AttributePermissions
type Owned = AttributePermissions
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§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.Source§impl ValueTypeMarker for AttributePermissions
impl ValueTypeMarker for AttributePermissions
Source§type Borrowed<'a> = &'a AttributePermissions
type Borrowed<'a> = &'a AttributePermissions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for AttributePermissions
impl StructuralPartialEq for AttributePermissions
Auto Trait Implementations§
impl Freeze for AttributePermissions
impl RefUnwindSafe for AttributePermissions
impl Send for AttributePermissions
impl Sync for AttributePermissions
impl Unpin for AttributePermissions
impl UnwindSafe for AttributePermissions
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)