pub struct ValueChangedParameters {
pub handle: Option<Handle>,
pub value: Option<Vec<u8>>,
pub peer_ids: Option<Vec<PeerId>>,
/* private fields */
}
Expand description
The parameters used to signal a characteristic value change from a LocalService to a peer.
Fields§
§handle: Option<Handle>
The handle of the characteristic value being signalled. Mandatory.
value: Option<Vec<u8>>
The updated value of the characteristic.
Note for clients using indications/notifications for high-throughput (not recommended):
While statically constrained to MAX_VALUE_LENGTH
, the real limit depends on the specific
peer’s configuration as notified by LocalService.PeerUpdate
. Any bytes exceeding that
limit are truncated internally by the stack.
Mandatory.
peer_ids: Option<Vec<PeerId>>
Only signal a subset of peers.
If not present or empty, all peers that can be updated are signaled.
If included, only the set of peers in this list will be signaled.
Peers are only signaled if they have configured updates or notifications per LocalService.
CharacteristicConfiguration
; other peers in peer_ids
will be ignored.
Trait Implementations§
Source§impl Clone for ValueChangedParameters
impl Clone for ValueChangedParameters
Source§fn clone(&self) -> ValueChangedParameters
fn clone(&self) -> ValueChangedParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ValueChangedParameters
impl Debug for ValueChangedParameters
Source§impl<D: ResourceDialect> Decode<ValueChangedParameters, D> for ValueChangedParameters
impl<D: ResourceDialect> Decode<ValueChangedParameters, D> for ValueChangedParameters
Source§impl Default for ValueChangedParameters
impl Default for ValueChangedParameters
Source§fn default() -> ValueChangedParameters
fn default() -> ValueChangedParameters
Source§impl<D: ResourceDialect> Encode<ValueChangedParameters, D> for &ValueChangedParameters
impl<D: ResourceDialect> Encode<ValueChangedParameters, D> for &ValueChangedParameters
Source§impl PartialEq for ValueChangedParameters
impl PartialEq for ValueChangedParameters
Source§impl TypeMarker for ValueChangedParameters
impl TypeMarker for ValueChangedParameters
Source§type Owned = ValueChangedParameters
type Owned = ValueChangedParameters
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 ValueChangedParameters
impl ValueTypeMarker for ValueChangedParameters
Source§type Borrowed<'a> = &'a ValueChangedParameters
type Borrowed<'a> = &'a ValueChangedParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for ValueChangedParameters
impl StructuralPartialEq for ValueChangedParameters
Auto Trait Implementations§
impl Freeze for ValueChangedParameters
impl RefUnwindSafe for ValueChangedParameters
impl Send for ValueChangedParameters
impl Sync for ValueChangedParameters
impl Unpin for ValueChangedParameters
impl UnwindSafe for ValueChangedParameters
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
)