#[non_exhaustive]pub enum Notice {
Show 19 variants
Dropped(Error),
Refused(Error),
Established {
session: SessionId,
kind: SessionKind,
fabric: FabricIndex,
},
SessionClosed {
session: SessionId,
subscriptions: usize,
},
Evicted {
session: SessionId,
},
Subscribed {
id: u32,
max_interval_s: u16,
},
Granted {
id: u32,
},
ReportFailed {
id: u32,
error: Error,
},
FabricAdded(FabricIndex),
FabricUpdated(FabricIndex),
FabricRemoved(FabricIndex),
RolledBack,
Commissioned(FabricIndex),
WindowOpened,
ChannelReleased,
Groupcast(GroupId),
EventLost(Option<RecordError>),
OutboxFull,
Abandoned(ExchangeKey),
}rustcrypto only.Expand description
Something worth knowing that happened, in the order it happened.
Nothing here is an error the caller must handle — the runtime has already done what the specification asks. Each is something an integrator wants to log, count or assert on; the runtime keeps the last sixteen and drops the oldest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Dropped(Error)
A datagram was dropped before it reached any protocol: unparseable, unauthenticated, a replay, or for a session this node does not have.
Refused(Error)
A message was received and could not be answered.
Established
PASE or CASE completed.
Fields
kind: SessionKindPASE or CASE.
fabric: FabricIndexThe fabric, for CASE; FabricIndex(0) for PASE.
SessionClosed
A session closed — by its peer, by eviction, or by a cascade — with this many subscriptions.
Evicted
A session was evicted to make room for a new one (§4.11.1.1).
Subscribed
A subscription was created and its priming report is going out.
Granted
A subscription’s SubscribeResponse went out: it is active.
ReportFailed
A due report could not be built, framed or queued; the subscription is still due.
FabricAdded(FabricIndex)
A fabric joined (AddNOC).
FabricUpdated(FabricIndex)
A fabric’s identity was replaced (UpdateNOC).
FabricRemoved(FabricIndex)
A fabric left (RemoveFabric, or a rollback of AddNOC).
RolledBack
The fail-safe was disarmed or expired and its cleanup ran (§11.10.7.2.2).
Commissioned(FabricIndex)
CommissioningComplete succeeded on this fabric (§11.10.7.6).
WindowOpened
A commissioning window opened, and the channel admits PASE again.
ChannelReleased
An established PASE channel was released to an open window.
Groupcast(GroupId)
A groupcast was acted on (and, as §8.7.2.3 requires, not answered).
EventLost(Option<RecordError>)
An access-control change could not be recorded as an event.
OutboxFull
The outbox was full and a datagram was dropped; MRP will retransmit a reliable one.
Abandoned(ExchangeKey)
MRP gave up on an exchange.