pub struct SubscribeRequest {
pub keep_subscriptions: bool,
pub min_interval_floor: u16,
pub max_interval_ceiling: u16,
pub paths: Vec<ReadPath>,
pub event_paths: Vec<EventPath>,
pub event_filters: Vec<EventFilter>,
}Expand description
Parameters for a subscription request.
Encodes as a SubscribeRequestMessage (Matter §10.6.6):
keepSubscriptions (ctx 0), minIntervalFloor (ctx 1),
maxIntervalCeiling (ctx 2), attributeRequests array (ctx 3),
isFabricFiltered (ctx 7), interactionModelRevision (ctx 0xFF).
Fields§
§keep_subscriptions: boolWhether to keep existing subscriptions alive when this one is
established. false is the typical controller-side value.
min_interval_floor: u16Minimum reporting interval floor in seconds.
max_interval_ceiling: u16Maximum reporting interval ceiling in seconds.
paths: Vec<ReadPath>Attribute paths to subscribe to. Each ReadPath field that is
Some is emitted as a context-tagged member of the
AttributePathIB list (endpoint=2, cluster=3, attribute=4);
None fields are omitted (wildcard).
event_paths: Vec<EventPath>Event paths to subscribe to (EventRequests, context tag 4). Empty ⇒
the array is omitted.
event_filters: Vec<EventFilter>Event filters (EventFilters, context tag 5) — report only events with
number >= event_min. Empty ⇒ the array is omitted.
Trait Implementations§
Source§impl Clone for SubscribeRequest
impl Clone for SubscribeRequest
Source§fn clone(&self) -> SubscribeRequest
fn clone(&self) -> SubscribeRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more