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§
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<D: ResourceDialect> Encode<AttributePermissions, D> for &AttributePermissions
impl<D: ResourceDialect> Encode<AttributePermissions, D> for &AttributePermissions
Source§impl<D: ResourceDialect, T0: Encode<Boxed<SecurityRequirements>, D>, T1: Encode<Boxed<SecurityRequirements>, D>, T2: Encode<Boxed<SecurityRequirements>, D>> Encode<AttributePermissions, D> for (T0, T1, T2)
impl<D: ResourceDialect, T0: Encode<Boxed<SecurityRequirements>, D>, T1: Encode<Boxed<SecurityRequirements>, D>, T2: Encode<Boxed<SecurityRequirements>, D>> Encode<AttributePermissions, D> for (T0, T1, T2)
Source§impl Hash for AttributePermissions
impl Hash for AttributePermissions
Source§impl Ord for AttributePermissions
impl Ord for AttributePermissions
Source§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,
Source§impl PartialEq for AttributePermissions
impl PartialEq for AttributePermissions
Source§impl PartialOrd for AttributePermissions
impl PartialOrd 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 Eq for AttributePermissions
impl 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
)