Struct ValueChangedParameters
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§
§impl Clone for ValueChangedParameters
impl Clone for ValueChangedParameters
§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 more§impl Debug for ValueChangedParameters
impl Debug for ValueChangedParameters
§impl<D> Decode<ValueChangedParameters, D> for ValueChangedParameterswhere
D: ResourceDialect,
impl<D> Decode<ValueChangedParameters, D> for ValueChangedParameterswhere
D: ResourceDialect,
§fn new_empty() -> ValueChangedParameters
fn new_empty() -> ValueChangedParameters
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for ValueChangedParameters
impl Default for ValueChangedParameters
§fn default() -> ValueChangedParameters
fn default() -> ValueChangedParameters
§impl<D> Encode<ValueChangedParameters, D> for &ValueChangedParameterswhere
D: ResourceDialect,
impl<D> Encode<ValueChangedParameters, D> for &ValueChangedParameterswhere
D: ResourceDialect,
§impl PartialEq for ValueChangedParameters
impl PartialEq for ValueChangedParameters
§impl TypeMarker for ValueChangedParameters
impl TypeMarker for ValueChangedParameters
§type Owned = ValueChangedParameters
type Owned = ValueChangedParameters
§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 ValueChangedParameters
impl ValueTypeMarker for ValueChangedParameters
§type Borrowed<'a> = &'a ValueChangedParameters
type Borrowed<'a> = &'a ValueChangedParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ValueChangedParameters as TypeMarker>::Owned,
) -> <ValueChangedParameters as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ValueChangedParameters as TypeMarker>::Owned, ) -> <ValueChangedParameters as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.